mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-26 10:43:47 +08:00
c2f6c6c1d2
darcs-hash:20060301165347-ac50b-3df9feec60dd9860e0988396d10b550a501f6802.gz
18 lines
559 B
Fish
18 lines
559 B
Fish
#
|
|
# Completions for fusermount
|
|
#
|
|
# Find mount points, borrowed from umount.fish
|
|
#
|
|
complete -c fusermount -d (N_ "Mount point") -x -a '
|
|
(
|
|
cat /etc/mtab | grep "^sshfs" | cut -d " " -f 1-2|tr " " \n|sed -e "s/[0-9\.]*:\//\//"|grep "^/"
|
|
)
|
|
'
|
|
|
|
complete -c fusermount -s h -d (N_ "Display help and exit")
|
|
complete -c fusermount -s v -d (N_ "Display version and exit")
|
|
complete -c fusermount -s o -x -d (N_ "Mount options")
|
|
complete -c fusermount -s u -d (N_ "Unmount")
|
|
complete -c fusermount -s q -d (N_ "Quiet")
|
|
complete -c fusermount -s z -d (N_ "Lazy unmount")
|