mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-01-01 17:24:50 +01:00
19299: try to handle completion of devices better
This commit is contained in:
parent
9f60e77f35
commit
e6d2f7ba01
2 changed files with 10 additions and 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>
|
2003-12-05 Oliver Kiddle <opk@zsh.org>
|
||||||
|
|
||||||
* 19276: Completion/Base/Completer/_prefix: fix fallback used to
|
* 19276: Completion/Base/Completer/_prefix: fix fallback used to
|
||||||
|
|
|
@ -785,9 +785,11 @@ devordir)
|
||||||
'directories:mount point:compadd -a mp_tmp' && ret=0
|
'directories:mount point:compadd -a mp_tmp' && ret=0
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
_alternative \
|
if (( ${${(s.,.)opt_args[-o]}[(I)loop(|=*)]} )) ; then
|
||||||
'devices:device:_files -P /dev/ -W /dev' \
|
_wanted device-files expl 'loop device file' _files && ret=0
|
||||||
'directories:mount point:_directories' && ret=0
|
else
|
||||||
|
_wanted files expl 'device or mount point' _files -g "*(-%,-/)" && ret=0
|
||||||
|
fi
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
;;
|
;;
|
||||||
|
|
Loading…
Reference in a new issue