aboutsummaryrefslogtreecommitdiffhomepage
path: root/share/completions/rsync.fish
diff options
context:
space:
mode:
authorGravatar Fabian Homborg <FHomborg@gmail.com>2015-09-09 20:55:04 +0200
committerGravatar Fabian Homborg <FHomborg@gmail.com>2015-09-09 20:55:04 +0200
commitb85a8bbbfed56f603dca5d6da85858f9c973b669 (patch)
treeaaca0722b25cff9d5e2ea5b46ad6e7dc59d9ec6d /share/completions/rsync.fish
parent925f4517739ed564edcac6dd5ed29c2835461da9 (diff)
Rename sgrep to __fish_sgrep
Makes it harder to cause issues with aliases, see fish-shell#2245
Diffstat (limited to 'share/completions/rsync.fish')
-rw-r--r--share/completions/rsync.fish6
1 files changed, 3 insertions, 3 deletions
diff --git a/share/completions/rsync.fish b/share/completions/rsync.fish
index aa0fa659..040c332a 100644
--- a/share/completions/rsync.fish
+++ b/share/completions/rsync.fish
@@ -123,12 +123,12 @@ complete -c rsync -d Hostname -a "
#
# Remote path
#
-complete -c rsync -d "Remote path" -n "commandline -ct|sgrep -q :" -a "
+complete -c rsync -d "Remote path" -n "commandline -ct| __fish_sgrep -q :" -a "
(
#Prepend any user@host:/path information supplied before the remote completion
- commandline -ct|sgrep -Eo '.*:+(.*/)?'
+ commandline -ct| __fish_sgrep -Eo '.*:+(.*/)?'
)(
#Get the list of remote files from the specified rsync server
- rsync --list-only (commandline -ct|sgrep -Eo '.*:+(.*/)?') ^/dev/null | sed '/^d/ s,\$,/, ' | tr -s ' '| cut -d' ' -f 5-
+ rsync --list-only (commandline -ct| __fish_sgrep -Eo '.*:+(.*/)?') ^/dev/null | sed '/^d/ s,\$,/, ' | tr -s ' '| cut -d' ' -f 5-
)
"