diff options
author | axel <axel@liljencrantz.se> | 2006-02-17 20:13:39 +1000 |
---|---|---|
committer | axel <axel@liljencrantz.se> | 2006-02-17 20:13:39 +1000 |
commit | 343cafef346543282b5b6e825bc8f9dd10028a48 (patch) | |
tree | 1bcf221ecb525c7aeadc8325e7b780d3656e544b /share/completions/sshfs.fish | |
parent | 95a01f3c8f15034433ffce368d8f2d13d925139c (diff) |
Redo installation file structure, move lots of things to $PREFIX/share/fish
darcs-hash:20060217101339-ac50b-d93d2c620a4b7f75f05ff461a6edbee001da7613.gz
Diffstat (limited to 'share/completions/sshfs.fish')
-rw-r--r-- | share/completions/sshfs.fish | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/share/completions/sshfs.fish b/share/completions/sshfs.fish new file mode 100644 index 00000000..76a31493 --- /dev/null +++ b/share/completions/sshfs.fish @@ -0,0 +1,33 @@ +# +# Completions for sshfs +# +# Host combinations, borrowed from ssh.fish +# +complete -x -c sshfs -d Hostname -a " + +(__fish_print_hostnames): + +( + #Prepend any username specified in the completion to the hostname + echo (commandline -ct)|sed -ne 's/\(.*@\).*/\1/p' +)(__fish_print_hostnames): + +(__fish_print_users)@ +" +# +# Mount Points, for neatness, I am only mounting under ~/mnt/ +# +complete -c sshfs -d (_ "Mount point") -x -a '(find ~/mnt -type d)' +# +# Command options +# +complete -c sshfs -s V -d (_ "Display version and exit") +complete -c sshfs -s p -x -d (_ "Port") +complete -c sshfs -s C -d (_ "Compression") +complete -c sshfs -s o -x -d (_ "Mount options") +complete -c sshfs -s d -d (_ "Enable debug") +complete -c sshfs -s f -d (_ "Foreground operation") +complete -c sshfs -s s -d (_ "Disable multi-threaded operation") +complete -c sshfs -s r -d (_ "Mount options") +complete -c sshfs -s h -d (_ "Display help and exit") + |