Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
oh-my-zsh
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
github
oh-my-zsh
Commits
06b02766
Unverified
Commit
06b02766
authored
Apr 30, 2020
by
Ross Goldberg
Committed by
GitHub
Apr 30, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sdk: support completion of new commands in 5.8.0 (#8870)
parent
58a1a139
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
sdk.plugin.zsh
plugins/sdk/sdk.plugin.zsh
+5
-2
No files found.
plugins/sdk/sdk.plugin.zsh
View file @
06b02766
...
@@ -13,9 +13,12 @@ _sdk() {
...
@@ -13,9 +13,12 @@ _sdk() {
l|ls|list|i|install
)
l|ls|list|i|install
)
compadd
-X
$'Candidates:
\n
'
--
"
${
SDKMAN_CANDIDATES
[@]
}
"
compadd
-X
$'Candidates:
\n
'
--
"
${
SDKMAN_CANDIDATES
[@]
}
"
;;
;;
ug|upgrade|c|current|u|use|d|default|rm|uninstall
)
ug|upgrade|
h|home|
c|current|u|use|d|default|rm|uninstall
)
compadd
-X
$'Installed Candidates:
\n
'
--
"
${${
(u)
${
(f)
$(
find
-L
--
"
${
SDKMAN_CANDIDATES_DIR
}
"
-mindepth
2
-maxdepth
2
-type
d
)}
[@]
:h
}
[@]
:t
}
"
compadd
-X
$'Installed Candidates:
\n
'
--
"
${${
(u)
${
(f)
$(
find
-L
--
"
${
SDKMAN_CANDIDATES_DIR
}
"
-mindepth
2
-maxdepth
2
-type
d
)}
[@]
:h
}
[@]
:t
}
"
;;
;;
e|env
)
compadd init
;;
offline
)
offline
)
compadd
enable
disable
compadd
enable
disable
;;
;;
...
@@ -37,7 +40,7 @@ _sdk() {
...
@@ -37,7 +40,7 @@ _sdk() {
compadd
-X
"Installable Versions of
${
words
[3]
}
:"
$'
\n
'
--
"
${${
(z)
${
(M)
${
(f)
${$(
__sdkman_list_versions
"
${
words
[3]
}
"
)
//[*+>]+( )/-
}}
[@]
:#
*
}
[@]
}
[@]
:#-
*
}
"
compadd
-X
"Installable Versions of
${
words
[3]
}
:"
$'
\n
'
--
"
${${
(z)
${
(M)
${
(f)
${$(
__sdkman_list_versions
"
${
words
[3]
}
"
)
//[*+>]+( )/-
}}
[@]
:#
*
}
[@]
}
[@]
:#-
*
}
"
fi
fi
;;
;;
u|use|d|default|rm|uninstall
)
h|home|
u|use|d|default|rm|uninstall
)
compadd
-X
"Installed Versions of
${
words
[3]
}
:"
$'
\n
'
--
"
${${
(f)
$(
find
-L
--
"
${
SDKMAN_CANDIDATES_DIR
}
/
${
words
[3]
}
"
-mindepth
1
-maxdepth
1
-type
d
-not
-name
'current'
)}
[@]
:t
}
"
compadd
-X
"Installed Versions of
${
words
[3]
}
:"
$'
\n
'
--
"
${${
(f)
$(
find
-L
--
"
${
SDKMAN_CANDIDATES_DIR
}
/
${
words
[3]
}
"
-mindepth
1
-maxdepth
1
-type
d
-not
-name
'current'
)}
[@]
:t
}
"
;;
;;
esac
esac
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment