mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-27 05:13:10 +00:00
34e27ff4c2
darcs-hash:20070116011828-ac50b-fb923dc877869ded4d506bbe0bc5364eea44092f.gz
19 lines
706 B
Fish
19 lines
706 B
Fish
#
|
|
# Completions for fusermount
|
|
#
|
|
# Find mount points, borrowed from umount.fish
|
|
#
|
|
complete -c fusermount --description "Mount point" -x -a '
|
|
(
|
|
cat /etc/mtab | sgrep "^sshfs" | cut -d " " -f 1-2|tr " " \n|sed -e "s/[0-9\.]*:\//\//"|sgrep "^/"
|
|
cat /etc/mtab | sgrep "^fuseiso" | cut -d " " -f 1-2|tr " " \n|sed -e "s/[0-9\.]*:\//\//"|sgrep "^/"
|
|
)
|
|
'
|
|
|
|
complete -c fusermount -s h --description "Display help and exit"
|
|
complete -c fusermount -s v --description "Display version and exit"
|
|
complete -c fusermount -s o -x --description "Mount options"
|
|
complete -c fusermount -s u --description "Unmount"
|
|
complete -c fusermount -s q --description "Quiet"
|
|
complete -c fusermount -s z --description "Lazy unmount"
|
|
|