fish-shell/share/completions/sshfs.fish
axel c2f6c6c1d2 Do gettext translation of descriptions just-in-time internally in fish
darcs-hash:20060301165347-ac50b-3df9feec60dd9860e0988396d10b550a501f6802.gz
2006-03-02 02:53:47 +10:00

33 lines
944 B
Fish

#
# 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 (N_ "Mount point") -x -a '(find ~/mnt -type d)'
#
# Command options
#
complete -c sshfs -s V -d (N_ "Display version and exit")
complete -c sshfs -s p -x -d (N_ "Port")
complete -c sshfs -s C -d (N_ "Compression")
complete -c sshfs -s o -x -d (N_ "Mount options")
complete -c sshfs -s d -d (N_ "Enable debug")
complete -c sshfs -s f -d (N_ "Foreground operation")
complete -c sshfs -s s -d (N_ "Disable multi-threaded operation")
complete -c sshfs -s r -d (N_ "Mount options")
complete -c sshfs -s h -d (N_ "Display help and exit")