mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-27 21:33:09 +00:00
343cafef34
darcs-hash:20060217101339-ac50b-d93d2c620a4b7f75f05ff461a6edbee001da7613.gz
17 lines
552 B
Fish
17 lines
552 B
Fish
#
|
|
# Completions for fusermount
|
|
#
|
|
# Find mount points, borrowed from umount.fish
|
|
#
|
|
complete -c fusermount -d (_ "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 (_ "Display help and exit")
|
|
complete -c fusermount -s v -d (_ "Display version and exit")
|
|
complete -c fusermount -s o -x -d (_ "Mount options")
|
|
complete -c fusermount -s u -d (_ "Unmount")
|
|
complete -c fusermount -s q -d (_ "Quiet")
|
|
complete -c fusermount -s z -d (_ "Lazy unmount")
|