about summary refs log tree commit diff
diff options
context:
space:
mode:
authorBart Schaefer <barts@users.sourceforge.net>2001-03-11 19:30:49 +0000
committerBart Schaefer <barts@users.sourceforge.net>2001-03-11 19:30:49 +0000
commit9419b25109f5ae52f9202e78aa9949f16f76d191 (patch)
treeec6feced77deed4b1f6ddb757af7bf1ac18d2e34
parentd1314ec01a90017c0688c423eda86dadac50e855 (diff)
downloadzsh-9419b25109f5ae52f9202e78aa9949f16f76d191.tar.gz
zsh-9419b25109f5ae52f9202e78aa9949f16f76d191.tar.xz
zsh-9419b25109f5ae52f9202e78aa9949f16f76d191.zip
Use _normal completion following the name of a shell script.
-rw-r--r--Completion/User/_sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/Completion/User/_sh b/Completion/User/_sh
index ea0fcfc11..22379856e 100644
--- a/Completion/User/_sh
+++ b/Completion/User/_sh
@@ -4,5 +4,10 @@ if (( CURRENT == ${words[(i)-c]} + 1 )); then
   compset -q
   _normal
 else
+  local n=${words[(b:2:i)[^-]*]}
+  if (( n <= CURRENT )); then
+    compset -n $n
+    _normal && return 0
+  fi
   _default
 fi