mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-23 03:03:57 +08:00
Exclude current directory ('.') from rsync completions
Completing to '.' isn't useful and just gets in the way.
This commit is contained in:
parent
8deab8d9ce
commit
a5764663e7
|
@ -205,6 +205,7 @@ complete -c rsync -d "Remote path" -n "commandline -ct | string match -q '*:*'"
|
|||
)(
|
||||
# Get the list of remote files from the specified rsync server.
|
||||
rsync --list-only (__rsync_remote_target) 2>/dev/null | string replace -r '^d.*' '\$0/' |
|
||||
string replace -r '(\S+\s+){4}' '' $(set -q new_escaping[1]; or echo ' | string escape -n'; echo)
|
||||
string replace -r '(\S+\s+){4}' '' |
|
||||
string match --invert './' $(set -q new_escaping[1]; or echo ' | string escape -n'; echo)
|
||||
)
|
||||
"
|
||||
|
|
Loading…
Reference in New Issue
Block a user