aboutsummaryrefslogtreecommitdiffhomepage
path: root/share/completions/sshfs.fish
blob: c9785bde8697eef4a4d7b9fe4da5d00cbe57e267 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
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 (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")