mirror of
https://github.com/fish-shell/fish-shell
synced 2025-01-27 20:25:12 +00:00
Fix fusermount completion
This commit is contained in:
parent
07ef1e7c4b
commit
5a5b51c909
1 changed files with 1 additions and 7 deletions
|
@ -3,13 +3,7 @@
|
||||||
#
|
#
|
||||||
# Find mount points, borrowed from umount.fish
|
# Find mount points, borrowed from umount.fish
|
||||||
#
|
#
|
||||||
complete -c fusermount --description "Mount point" -x -a '
|
complete -c fusermount --description "Mount point" -x -a '(__fish_print_mounted)'
|
||||||
(
|
|
||||||
cat /etc/mtab | __fish_sgrep "^sshfs" | cut -d " " -f 1-2|tr " " \n|sed -e "s/[0-9\.]*:\//\//"| __fish_sgrep "^/"
|
|
||||||
cat /etc/mtab | __fish_sgrep "^fuseiso" | cut -d " " -f 1-2|tr " " \n|sed -e "s/[0-9\.]*:\//\//"| __fish_sgrep "^/"
|
|
||||||
)
|
|
||||||
'
|
|
||||||
|
|
||||||
complete -c fusermount -s h --description "Display help and exit"
|
complete -c fusermount -s h --description "Display help and exit"
|
||||||
complete -c fusermount -s v --description "Display version 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 o -x --description "Mount options"
|
||||||
|
|
Loading…
Reference in a new issue