Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
Ohmyzsh
Commits
15509ce0
Commit
15509ce0
authored
Jun 30, 2013
by
dongweiming
Browse files
Update gem completion
parent
bc3cadf5
Changes
1
Show whitespace changes
Inline
Side-by-side
plugins/gem/_gem
View file @
15509ce0
...
@@ -4,11 +4,13 @@
...
@@ -4,11 +4,13 @@
# gem zsh completion, based on homebrew completion
# gem zsh completion, based on homebrew completion
_gem_installed() {
_gem_installed() {
installed_gems=(
`
gem list --local --no-versions
`
)
installed_gems=(
${(f)"$(
gem list --local --no-versions
)"}
)
}
}
local -a _1st_arguments
local -a _1st_arguments
_1st_arguments=(
_1st_arguments=(
'build:Build a gem from a gemspec'
'cert:Manage RubyGems certificates and signing settings'
'cert:Manage RubyGems certificates and signing settings'
'check:Check installed gems'
'check:Check installed gems'
'cleanup:Clean up old versions of installed gems in the local repository'
'cleanup:Clean up old versions of installed gems in the local repository'
...
@@ -37,6 +39,7 @@ _1st_arguments=(
...
@@ -37,6 +39,7 @@ _1st_arguments=(
'unpack:Unpack an installed gem to the current directory'
'unpack:Unpack an installed gem to the current directory'
'update:Update the named gems (or all installed gems) in the local repository'
'update:Update the named gems (or all installed gems) in the local repository'
'which:Find the location of a library file you can require'
'which:Find the location of a library file you can require'
'yank:Remove a specific gem version release from RubyGems.org'
)
)
local expl
local expl
...
...
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