2006-01-25 07:01:33 +08: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)@
|
|
|
|
"
|
|
|
|
#
|
|
|
|
# Mount Points, for neatness, I am only mounting under ~/mnt/
|
|
|
|
#
|
2007-01-16 09:18:28 +08:00
|
|
|
complete -c sshfs --description "Mount point" -x -a '(find ~/mnt -type d)'
|
2006-01-25 07:01:33 +08:00
|
|
|
#
|
|
|
|
# Command options
|
|
|
|
#
|
2007-01-16 09:18:28 +08:00
|
|
|
complete -c sshfs -s V --description "Display version and exit"
|
|
|
|
complete -c sshfs -s p -x --description "Port"
|
|
|
|
complete -c sshfs -s C --description "Compression"
|
|
|
|
complete -c sshfs -s o -x --description "Mount options"
|
|
|
|
complete -c sshfs -s d --description "Enable debug"
|
|
|
|
complete -c sshfs -s f --description "Foreground operation"
|
|
|
|
complete -c sshfs -s s --description "Disable multi-threaded operation"
|
|
|
|
complete -c sshfs -s r --description "Mount options"
|
|
|
|
complete -c sshfs -s h --description "Display help and exit"
|
2006-01-25 07:01:33 +08:00
|
|
|
|