2006-01-24 23:01:33 +00:00
|
|
|
#
|
|
|
|
# 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)@
|
|
|
|
"
|
|
|
|
#
|
2014-01-29 05:33:27 +00:00
|
|
|
# Mount Points
|
2006-01-24 23:01:33 +00:00
|
|
|
#
|
2014-01-29 05:33:27 +00:00
|
|
|
complete -c sshfs -x -a '(__fish_complete_directories (commandline -ct) "Mount point")'
|
2006-01-24 23:01:33 +00:00
|
|
|
#
|
|
|
|
# Command options
|
|
|
|
#
|
2017-10-11 17:17:35 +00:00
|
|
|
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"
|
2006-01-24 23:01:33 +00:00
|
|
|
|