zsh-workers
 help / color / mirror / code / Atom feed
41d3dec7285a569990f352d249578c36eb9f8856 blob 658 bytes (raw)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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 option:_fuse_values "mount option"' \
  '-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' "${(@g::)mtpts}"
  fi
  ;;
esac
debug log:

solving 41d3dec72 ...
found 41d3dec72 in https://git.vuxu.org/mirror/zsh/

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).