diff options
author | axel <axel@liljencrantz.se> | 2009-02-02 09:18:05 +1000 |
---|---|---|
committer | axel <axel@liljencrantz.se> | 2009-02-02 09:18:05 +1000 |
commit | 9d7224d756e3521dd0f3115874066d386154b438 (patch) | |
tree | 96bd63c0e238e66912718efb21eae81f1bdb67e3 /share/completions/ssh.fish | |
parent | 33ec8b45a074810ef985d9abe11551d5d55f3aee (diff) |
Add support for completing aliases in ssh. Written by David Bronke.
darcs-hash:20090201231805-ac50b-196d4c81981efe681677fe8ca7f1cc833a4734da.gz
Diffstat (limited to 'share/completions/ssh.fish')
-rw-r--r-- | share/completions/ssh.fish | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/share/completions/ssh.fish b/share/completions/ssh.fish index 637f8e49..4af4c2e5 100644 --- a/share/completions/ssh.fish +++ b/share/completions/ssh.fish @@ -4,6 +4,11 @@ __fish_complete_ssh ssh +complete -x -c ssh -d Alias -a " + +(__fish_print_ssh_aliases) +" + complete -x -c ssh -d Hostname -a " (__fish_print_hostnames) @@ -12,6 +17,9 @@ complete -x -c ssh -d Hostname -a " #Prepend any username specified in the completion to the hostname echo (commandline -ct)|sed -ne 's/\(.*@\).*/\1/p' )(__fish_print_hostnames) +" + +complete -x -c ssh -d User -a " (__fish_print_users)@ " |