Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
PATCH: _fusermount
- X-seq: zsh-workers 22799
- From: Clint Adams <clint@xxxxxxx>
- To: zsh-workers@xxxxxxxxxx
- Subject: PATCH: _fusermount
- Date: Sat, 30 Sep 2006 17:52:34 -0400
- Mail-followup-to: zsh-workers@xxxxxxxxxx
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
Modifications to _fusermount to use 22797, from R. Ramkumar.
Index: Completion/Linux/Command/_fusermount
===================================================================
RCS file: /cvsroot/zsh/zsh/Completion/Linux/Command/_fusermount,v
retrieving revision 1.1
diff -u -r1.1 _fusermount
--- Completion/Linux/Command/_fusermount 7 Dec 2005 19:58:41 -0000 1.1
+++ Completion/Linux/Command/_fusermount 30 Sep 2006 21:51:30 -0000
@@ -4,21 +4,23 @@
typeset -A opt_args
_arguments \
- '-h[help]' \
- '-v[version]' \
- '-o[options]:mount options:_values -s , "mount options" default_permissions allow_other allow_root kernel_cache large_read direct_io max_read=:size: hard_remove debug fsname=:name: use_ino readdir_ino nonempty umask=:umask: uid=:uid: gid=:gid:' \
- '-u[unmount]' \
- '-q[quiet]' \
- '-z[lazy unmount]' \
- ':mountpoint:->mountpoint' && return 0
+ '-h[display help information]' \
+ '-V[display version information]' \
+ '-o[specify mount options]:mount options:_fuse_values "mount options"' \
+ '-u[unmount a fuse mount]' \
+ '-z[unmount lazily (work even when if the resource is still busy)]' \
+ '-q[suppress nonessential output]' \
+ ':mount point:->mountpoint' && return 0
+
+typeset -a mtpts
case "$state" in
- (mountpoint)
- if [[ $+opt_args[-u] -eq 0 ]]; then
- _files -/
- else
- _wanted mounted expl 'mounted filesystem' \
- compadd ${${${"${(f)$(< /etc/mtab)}"}#* }%% *}
- fi
- ;;
+ (mountpoint)
+ if [[ $+opt_args[-u] -eq 0 ]]; then
+ _files -/
+ else
+ mtpts=(${${${"${(f)$(< /etc/mtab)}"}#* }%% *})
+ _canonical_paths mounted 'mounted filesystem' $mtpts
+ fi
+ ;;
esac
Messages sorted by:
Reverse Date,
Date,
Thread,
Author