mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-26 10:43:47 +08:00
parent
3d68d1bbe2
commit
fdef82f89c
|
@ -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 New Issue
Block a user