diff options
author | Paul Ackersviller <packersv@users.sourceforge.net> | 2007-10-29 20:39:15 +0000 |
---|---|---|
committer | Paul Ackersviller <packersv@users.sourceforge.net> | 2007-10-29 20:39:15 +0000 |
commit | 234a0acea79d8f79032f6cbda88e7720984b87e8 (patch) | |
tree | e71434dc815b245349d6c880b95807c74d37017c /Completion/Linux/Command/_fusermount | |
parent | 52f25ab3d2d81a7c3172a54e3c0824de40b30270 (diff) | |
download | zsh-234a0acea79d8f79032f6cbda88e7720984b87e8.tar.gz zsh-234a0acea79d8f79032f6cbda88e7720984b87e8.tar.xz zsh-234a0acea79d8f79032f6cbda88e7720984b87e8.zip |
Merge new completions 22794, 22797, 22798, 22799, and 22800 onto 4.2 branch.
Diffstat (limited to 'Completion/Linux/Command/_fusermount')
-rw-r--r-- | Completion/Linux/Command/_fusermount | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/Completion/Linux/Command/_fusermount b/Completion/Linux/Command/_fusermount new file mode 100644 index 000000000..d3d1647fa --- /dev/null +++ b/Completion/Linux/Command/_fusermount @@ -0,0 +1,26 @@ +#compdef fusermount + +local expl context state line +typeset -A opt_args + +_arguments \ + '-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 + mtpts=(${${${"${(f)$(< /etc/mtab)}"}#* }%% *}) + _canonical_paths mounted 'mounted filesystem' $mtpts + fi + ;; +esac |