diff options
author | Bart Schaefer <barts@users.sourceforge.net> | 2001-03-11 19:30:49 +0000 |
---|---|---|
committer | Bart Schaefer <barts@users.sourceforge.net> | 2001-03-11 19:30:49 +0000 |
commit | 9419b25109f5ae52f9202e78aa9949f16f76d191 (patch) | |
tree | ec6feced77deed4b1f6ddb757af7bf1ac18d2e34 /Completion | |
parent | d1314ec01a90017c0688c423eda86dadac50e855 (diff) | |
download | zsh-9419b25109f5ae52f9202e78aa9949f16f76d191.tar.gz zsh-9419b25109f5ae52f9202e78aa9949f16f76d191.tar.xz zsh-9419b25109f5ae52f9202e78aa9949f16f76d191.zip |
Use _normal completion following the name of a shell script.
Diffstat (limited to 'Completion')
-rw-r--r-- | Completion/User/_sh | 5 |
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 |