diff options
| author | Oliver Kiddle <opk@users.sourceforge.net> | 2003-04-23 12:00:57 +0000 |
|---|---|---|
| committer | Oliver Kiddle <opk@users.sourceforge.net> | 2003-04-23 12:00:57 +0000 |
| commit | 29a3496ebb91cc418db4b5ba66837c59c8170df5 (patch) | |
| tree | 4a38ed495686762226c7345f8f293bae70114749 /Completion/Unix/Command | |
| parent | 18461: handle cases where the perlfunc man page is compressed (diff) | |
| download | zsh-29a3496ebb91cc418db4b5ba66837c59c8170df5.tar zsh-29a3496ebb91cc418db4b5ba66837c59c8170df5.tar.gz zsh-29a3496ebb91cc418db4b5ba66837c59c8170df5.tar.bz2 zsh-29a3496ebb91cc418db4b5ba66837c59c8170df5.tar.lz zsh-29a3496ebb91cc418db4b5ba66837c59c8170df5.tar.xz zsh-29a3496ebb91cc418db4b5ba66837c59c8170df5.tar.zst zsh-29a3496ebb91cc418db4b5ba66837c59c8170df5.zip | |
18462: complete files in addition to commands
Diffstat (limited to 'Completion/Unix/Command')
| -rw-r--r-- | Completion/Unix/Command/_sh | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Completion/Unix/Command/_sh b/Completion/Unix/Command/_sh index 559c6ad1b..9e72a2918 100644 --- a/Completion/Unix/Command/_sh +++ b/Completion/Unix/Command/_sh @@ -16,7 +16,9 @@ else local n=${words[(b:2:i)[^-]*]} if (( n <= CURRENT )); then compset -n $n - _normal && return 0 + _alternative \ + 'files:file:_files' \ + 'commands:command:_normal' && return 0 fi _default fi |
