about summary refs log tree commit diff
path: root/Completion/Builtins
diff options
context:
space:
mode:
authorSven Wischnowsky <wischnow@users.sourceforge.net>2000-04-17 08:22:44 +0000
committerSven Wischnowsky <wischnow@users.sourceforge.net>2000-04-17 08:22:44 +0000
commit1fb481b8c28f555c4f9b787cc92498a3821541ec (patch)
tree49e3978fdb7a2b1d65f3ce13d1faa82305d09bc9 /Completion/Builtins
parentcd45aa331dc206b1b40c5be5e222d46148bf42ac (diff)
downloadzsh-1fb481b8c28f555c4f9b787cc92498a3821541ec.tar.gz
zsh-1fb481b8c28f555c4f9b787cc92498a3821541ec.tar.xz
zsh-1fb481b8c28f555c4f9b787cc92498a3821541ec.zip
better completion after `=', everywhere (10780)
Diffstat (limited to 'Completion/Builtins')
-rw-r--r--Completion/Builtins/_vars_eq8
-rw-r--r--Completion/Builtins/_zstyle10
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}
       ;;