mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-05-29 18:51:15 -03:00
Add support for completing aliases in ssh. Written by David Bronke.
darcs-hash:20090201231805-ac50b-196d4c81981efe681677fe8ca7f1cc833a4734da.gz
This commit is contained in:
@@ -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)@
|
||||
"
|
||||
|
||||
Reference in New Issue
Block a user