diff options
| author | Tanaka Akira <akr@users.sourceforge.net> | 1999-07-12 17:02:40 +0000 |
|---|---|---|
| committer | Tanaka Akira <akr@users.sourceforge.net> | 1999-07-12 17:02:40 +0000 |
| commit | 1f6786ef7ae24ff858f52c6d4ac2bc23d529c0c1 (patch) | |
| tree | 608d6471d477e8d4d9eafa62f521be50c3248f6e /Completion/Base/_command_names | |
| parent | zsh-3.1.5-pws-25 (diff) | |
| download | zsh-1f6786ef7ae24ff858f52c6d4ac2bc23d529c0c1.tar zsh-1f6786ef7ae24ff858f52c6d4ac2bc23d529c0c1.tar.gz zsh-1f6786ef7ae24ff858f52c6d4ac2bc23d529c0c1.tar.bz2 zsh-1f6786ef7ae24ff858f52c6d4ac2bc23d529c0c1.tar.lz zsh-1f6786ef7ae24ff858f52c6d4ac2bc23d529c0c1.tar.xz zsh-1f6786ef7ae24ff858f52c6d4ac2bc23d529c0c1.tar.zst zsh-1f6786ef7ae24ff858f52c6d4ac2bc23d529c0c1.zip | |
zsh-3.1.6-test-1zsh-3.1.6-test-1
Diffstat (limited to 'Completion/Base/_command_names')
| -rw-r--r-- | Completion/Base/_command_names | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Completion/Base/_command_names b/Completion/Base/_command_names index 8f75f1a77..61fea56dd 100644 --- a/Completion/Base/_command_names +++ b/Completion/Base/_command_names @@ -2,6 +2,13 @@ local nm=$compstate[nmatches] ret=1 + +# Complete jobs in implicit fg and bg +if [[ "$PREFIX[1]" = "%" ]]; then + compgen -j -P '%' + [[ nm -ne compstate[nmatches] ]] && return +fi + compgen -c && ret=0 if [[ nm -eq compstate[nmatches] ]]; then |
