aboutsummaryrefslogtreecommitdiffhomepage
path: root/init/completions/fusermount.fish
blob: 56ddcd4ee5644377f6e5690776d9a66a8c886606 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#
# 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")