diff options
| author | Oliver Kiddle <opk@users.sourceforge.net> | 2003-12-16 16:25:39 +0000 |
|---|---|---|
| committer | Oliver Kiddle <opk@users.sourceforge.net> | 2003-12-16 16:25:39 +0000 |
| commit | e6d2f7ba01b9f9af36c873a5066eaf655f37d02b (patch) | |
| tree | 09cbd5222cb0e12854d3c89c062a284171ae4837 | |
| parent | Baptiste Daroussin: 19272: small updates (diff) | |
| download | zsh-e6d2f7ba01b9f9af36c873a5066eaf655f37d02b.tar zsh-e6d2f7ba01b9f9af36c873a5066eaf655f37d02b.tar.gz zsh-e6d2f7ba01b9f9af36c873a5066eaf655f37d02b.tar.bz2 zsh-e6d2f7ba01b9f9af36c873a5066eaf655f37d02b.tar.lz zsh-e6d2f7ba01b9f9af36c873a5066eaf655f37d02b.tar.xz zsh-e6d2f7ba01b9f9af36c873a5066eaf655f37d02b.tar.zst zsh-e6d2f7ba01b9f9af36c873a5066eaf655f37d02b.zip | |
19299: try to handle completion of devices better
| -rw-r--r-- | ChangeLog | 5 | ||||
| -rw-r--r-- | Completion/Unix/Command/_mount | 8 |
2 files changed, 10 insertions, 3 deletions
@@ -1,3 +1,8 @@ +2003-12-16 Oliver Kiddle <opk@zsh.org> + + * 19299: Completion/Unix/Command/_mount: try to handle + completion of devices better + 2003-12-05 Oliver Kiddle <opk@zsh.org> * 19276: Completion/Base/Completer/_prefix: fix fallback used to diff --git a/Completion/Unix/Command/_mount b/Completion/Unix/Command/_mount index 691bfa7bb..bcb59dd6c 100644 --- a/Completion/Unix/Command/_mount +++ b/Completion/Unix/Command/_mount @@ -785,9 +785,11 @@ devordir) 'directories:mount point:compadd -a mp_tmp' && ret=0 ;; *) - _alternative \ - 'devices:device:_files -P /dev/ -W /dev' \ - 'directories:mount point:_directories' && ret=0 + if (( ${${(s.,.)opt_args[-o]}[(I)loop(|=*)]} )) ; then + _wanted device-files expl 'loop device file' _files && ret=0 + else + _wanted files expl 'device or mount point' _files -g "*(-%,-/)" && ret=0 + fi ;; esac ;; |
