mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-23 10:43:32 +08:00
60248e895f
for various completions. This makes the code a bit nicer, removes one of the __fish_print_hostnames calls (which are slow) and a sed call, thereby improving performance by about 33% (600ms to 400ms). Fixes #4511.
22 lines
646 B
Fish
22 lines
646 B
Fish
#
|
|
# Completions for sshfs
|
|
#
|
|
complete -x -c sshfs -d Hostname -a "(__fish_complete_user_at_hosts):"
|
|
#
|
|
# Mount Points
|
|
#
|
|
complete -c sshfs -x -a '(__fish_complete_directories (commandline -ct) "Mount point")'
|
|
#
|
|
# 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"
|
|
|