mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-26 04:43:10 +00:00
parent
3d68d1bbe2
commit
fdef82f89c
1 changed files with 16 additions and 0 deletions
|
@ -104,6 +104,22 @@ complete -c rsync -s 6 -l ipv6 --description "Prefer IPv6"
|
|||
complete -c rsync -l version --description "Display version and exit"
|
||||
complete -c rsync -l help --description "Display help and exit"
|
||||
|
||||
#
|
||||
# Hostname completion
|
||||
#
|
||||
complete -c rsync -d Hostname -a "
|
||||
|
||||
(__fish_print_hostnames):
|
||||
|
||||
(
|
||||
#Prepend any username specified in the completion to the hostname
|
||||
commandline -ct |sed -ne 's/\(.*@\).*/\1/p'
|
||||
)(__fish_print_hostnames):
|
||||
|
||||
(__fish_print_users)@\tUsername
|
||||
|
||||
"
|
||||
|
||||
#
|
||||
# Remote path
|
||||
#
|
||||
|
|
Loading…
Reference in a new issue