aboutsummaryrefslogtreecommitdiffhomepage
path: root/share/completions/fusermount.fish
diff options
context:
space:
mode:
authorGravatar axel <axel@liljencrantz.se>2006-02-17 20:13:39 +1000
committerGravatar axel <axel@liljencrantz.se>2006-02-17 20:13:39 +1000
commit343cafef346543282b5b6e825bc8f9dd10028a48 (patch)
tree1bcf221ecb525c7aeadc8325e7b780d3656e544b /share/completions/fusermount.fish
parent95a01f3c8f15034433ffce368d8f2d13d925139c (diff)
Redo installation file structure, move lots of things to $PREFIX/share/fish
darcs-hash:20060217101339-ac50b-d93d2c620a4b7f75f05ff461a6edbee001da7613.gz
Diffstat (limited to 'share/completions/fusermount.fish')
-rw-r--r--share/completions/fusermount.fish17
1 files changed, 17 insertions, 0 deletions
diff --git a/share/completions/fusermount.fish b/share/completions/fusermount.fish
new file mode 100644
index 00000000..56ddcd4e
--- /dev/null
+++ b/share/completions/fusermount.fish
@@ -0,0 +1,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")