From 7d09ec507c139a16fc4246a1c035f70584cc41ea Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Tue, 22 May 2012 08:58:41 +0000 Subject: Jun T.: 30483: improved completion on MacOS --- Completion/Unix/Command/_mount | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'Completion') 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] ) -- cgit 1.4.1