* PATCH: _fusermount
@ 2006-09-30 21:52 Clint Adams
0 siblings, 0 replies; 2+ messages in thread
From: Clint Adams @ 2006-09-30 21:52 UTC (permalink / raw)
To: zsh-workers
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
^ permalink raw reply [flat|nested] 2+ messages in thread
* PATCH: _fusermount
@ 2005-12-07 19:55 Clint Adams
0 siblings, 0 replies; 2+ messages in thread
From: Clint Adams @ 2005-12-07 19:55 UTC (permalink / raw)
To: zsh-workers
For FUSE
Index: Completion/Linux/Command/_fusermount
===================================================================
RCS file: Completion/Linux/Command/_fusermount
diff -N Completion/Linux/Command/_fusermount
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ Completion/Linux/Command/_fusermount 7 Dec 2005 19:54:36 -0000
@@ -0,0 +1,24 @@
+#compdef fusermount
+
+local expl context state line
+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
+
+case "$state" in
+ (mountpoint)
+ if [[ $+opt_args[-u] -eq 0 ]]; then
+ _files -/
+ else
+ _wanted mounted expl 'mounted filesystem' \
+ compadd ${${${"${(f)$(< /etc/mtab)}"}#* }%% *}
+ fi
+ ;;
+esac
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2006-09-30 21:52 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-09-30 21:52 PATCH: _fusermount Clint Adams
-- strict thread matches above, loose matches on Subject: below --
2005-12-07 19:55 Clint Adams
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).