2006-01-25 07:01:33 +08:00
|
|
|
#
|
|
|
|
# Completions for fusermount
|
|
|
|
#
|
|
|
|
# Find mount points, borrowed from umount.fish
|
|
|
|
#
|
2006-03-02 00:53:47 +08:00
|
|
|
complete -c fusermount -d (N_ "Mount point") -x -a '
|
2006-01-25 07:01:33 +08:00
|
|
|
(
|
|
|
|
cat /etc/mtab | grep "^sshfs" | cut -d " " -f 1-2|tr " " \n|sed -e "s/[0-9\.]*:\//\//"|grep "^/"
|
2006-05-29 21:52:27 +08:00
|
|
|
cat /etc/mtab | grep "^fuseiso" | cut -d " " -f 1-2|tr " " \n|sed -e "s/[0-9\.]*:\//\//"|grep "^/"
|
2006-01-25 07:01:33 +08:00
|
|
|
)
|
|
|
|
'
|
|
|
|
|
2006-03-02 00:53:47 +08:00
|
|
|
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")
|
2006-05-29 21:52:27 +08:00
|
|
|
|