summaryrefslogtreecommitdiff
path: root/Completion/Unix/Command/_mount
diff options
context:
space:
mode:
authorAxel Beckert <abe@deuxchevaux.org>2017-08-10 17:16:37 +0200
committerAxel Beckert <abe@deuxchevaux.org>2017-08-10 17:16:37 +0200
commite3b67a8198c852bf6c9db3a0a1a20e87a4e1da74 (patch)
tree8486633f6232f49ea330ab8e036decb5dc3bbf74 /Completion/Unix/Command/_mount
parentf8edeff2494bf23e2ee29d4c761361b1c878e09d (diff)
parentdc475bfa0ec6cd03789dde3bf28f71e0ea9d5003 (diff)
downloadzsh-e3b67a8198c852bf6c9db3a0a1a20e87a4e1da74.tar.gz
zsh-e3b67a8198c852bf6c9db3a0a1a20e87a4e1da74.zip
Merge tag '5.4.1' into debian
Release 5.4.1.
Diffstat (limited to 'Completion/Unix/Command/_mount')
-rw-r--r--Completion/Unix/Command/_mount39
1 files changed, 2 insertions, 37 deletions
diff --git a/Completion/Unix/Command/_mount b/Completion/Unix/Command/_mount
index 7c5605016..03cc01f8d 100644
--- a/Completion/Unix/Command/_mount
+++ b/Completion/Unix/Command/_mount
@@ -619,7 +619,7 @@ if (( ! $+_fs_any )); then
'longnames[force Windows 95 long filenames to be visible]'
'nowin95[completely ignore Windows 95 extended file information]'
)
- if [[ "${OSTYPE}" =~ freebsd.* ]]; then
+ if [[ "${OSTYPE}" = freebsd* ]]; then
_fs_msdosfs=( "$_fs_msdos[@]" )
fi
;;
@@ -931,42 +931,7 @@ devordir)
esac
;;
udevordir)
- local dev_tmp dpath_tmp mp_tmp mline
-
- case "$OSTYPE" in
- linux*|irix*)
- tmp=( "${(@f)$(< /etc/mtab)}" )
- dev_tmp=( "${(@)${(@)tmp%% *}:#none}" )
- mp_tmp=( "${(@)${(@)tmp#* }%% *}" )
- ;;
- freebsd*|dragonfly*)
- /sbin/mount | while read mline; do
- dev_tmp+=( $mline[(w)1] )
- mp_tmp+=( $mline[(w)3] )
- done
- ;;
- darwin*)
- tmp=( "${(@f)$(/sbin/mount)}" )
- dev_tmp=( "${(@)${(@)tmp%% *}:#map}" )
- mp_tmp=( "${(@)${(@)tmp#* on }%% \(*}" )
- ;;
- *)
- /sbin/mount | while read mline; do
- mp_tmp+=( $mline[(w)1] )
- dev_tmp+=( $mline[(w)3] )
- done
- ;;
- esac
-
- local MATCH MBEGIN MEND
- mp_tmp=("${(@g::)mp_tmp}")
- dpath_tmp=( "${(@Mg::)dev_tmp:#/*}" )
- dev_tmp=( "${(@g::)dev_tmp:#/*}" )
-
- _alternative \
- 'device-labels:device label:compadd -a dev_tmp' \
- 'device-paths: device path:_canonical_paths -A dpath_tmp -N -M "r:|/=* r:|=*" device-paths device\ path' \
- 'directories:mount point:_canonical_paths -A mp_tmp -N -M "r:|/=* r:|=*" directories mount\ point' && ret=0
+ _umountable
;;
labels)
_wanted labels expl 'disk label' compadd /dev/disk/by-label/*(:t) && ret=0