summaryrefslogtreecommitdiff
path: root/Completion/Unix/Command/_mount
diff options
context:
space:
mode:
authorAxel Beckert <abe@deuxchevaux.org>2012-07-22 21:40:10 +0200
committerAxel Beckert <abe@deuxchevaux.org>2012-07-22 21:40:10 +0200
commit5c7ac461932c17df91374e6c2740ad22c95481af (patch)
tree85d21004331d9d1bfca266d111000acd7fa1725a /Completion/Unix/Command/_mount
parent3988419a8dc4a74e491df584804a77a2f8be88cd (diff)
parente27142d45686cacc6ed155e5045b97dd6243d44c (diff)
downloadzsh-5c7ac461932c17df91374e6c2740ad22c95481af.tar.gz
zsh-5c7ac461932c17df91374e6c2740ad22c95481af.zip
New upstream release
Diffstat (limited to 'Completion/Unix/Command/_mount')
-rw-r--r--Completion/Unix/Command/_mount9
1 files changed, 7 insertions, 2 deletions
diff --git a/Completion/Unix/Command/_mount b/Completion/Unix/Command/_mount
index 409d253ab..b48aaa236 100644
--- a/Completion/Unix/Command/_mount
+++ b/Completion/Unix/Command/_mount
@@ -690,7 +690,7 @@ if [[ "$service" = mount ]]; then
deffs=hsfs
typeops=-F
;;
- freebsd*|dragonfly*)
+ freebsd*|dragonfly*|darwin*)
args=( -s
'(:)-a[mount all filesystems in fstab]'
'-d[cause everything to be done except for the actual system call]'
@@ -765,7 +765,7 @@ else
'*:dev or dir:->udevordir'
)
;;
- freebsd*|dragonfly*)
+ freebsd*|dragonfly*|darwin*)
args=(
'(*)-a[unmount all mounted file systems]'
'-A[unmount all mounted file systems except the root]'
@@ -904,6 +904,11 @@ udevordir)
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] )