diff options
Diffstat (limited to 'Completion/Builtins')
-rw-r--r-- | Completion/Builtins/_vars_eq | 8 | ||||
-rw-r--r-- | Completion/Builtins/_zstyle | 10 |
2 files changed, 12 insertions, 6 deletions
diff --git a/Completion/Builtins/_vars_eq b/Completion/Builtins/_vars_eq index 9d7863ae6..1e8fa6d2b 100644 --- a/Completion/Builtins/_vars_eq +++ b/Completion/Builtins/_vars_eq @@ -1,9 +1,9 @@ #compdef declare export integer local readonly typeset -if compset -P '*=*:'; then - _default -elif compset -P '*='; then - _default +if [[ "$PREFIX" = *\=* ]]; then + compstate[parameter]="${PREFIX%%\=*}" + compset -P 1 '*=' + _value else _parameters -q -S '=' fi diff --git a/Completion/Builtins/_zstyle b/Completion/Builtins/_zstyle index b19303300..5f078fddb 100644 --- a/Completion/Builtins/_zstyle +++ b/Completion/Builtins/_zstyle @@ -12,9 +12,10 @@ styles=( accept-exact c:bool add-space c:bool ambiguous c:bool - arguments c: + assign-list c: auto-description c: break-keys c: + command c:command completer c:completer completions c: condition c: @@ -38,7 +39,6 @@ styles=( insert-unambiguous c:bool last-prompt c:bool list c:listwhen - list-arguments c: list-colors c: list-packed c:bool list-rows-first c:bool @@ -235,6 +235,12 @@ while [[ -n $state ]]; do compadd - show menu ;; + command) + shift 3 words + (( CURRENT -= 3 )) + _normal + ;; + _*) ${=ostate} ;; |