mirror of
https://github.com/zsh-users/zsh-completions.git
synced 2026-09-28 15:54:48 +00:00
Fix rails completion
- fix wrong variable usage
This commit is contained in:
+2
-2
@@ -49,7 +49,7 @@ _rails() {
|
||||
'(- *)'{-v,--version}'[Show Rails version and quit]'
|
||||
)
|
||||
|
||||
runtime_options=(
|
||||
rails_options=(
|
||||
'(-f --force)'{-f,--force}'[Overwrite files that already exist]'
|
||||
'(-p --pretend)'{-p,--pretend}'[Run but do not make any changes]'
|
||||
'(-q --quiet)'{-q,--quiet}'[Suppress status output]'
|
||||
@@ -59,7 +59,7 @@ _rails() {
|
||||
local ret=1
|
||||
|
||||
_arguments -C \
|
||||
$rails_options \
|
||||
$runtime_options \
|
||||
'1: :_rails_subcommands' \
|
||||
'*:: :->command' && ret=0
|
||||
|
||||
|
||||
Reference in New Issue
Block a user