diff options
author | Fabian Homborg <FHomborg@gmail.com> | 2015-09-09 20:55:04 +0200 |
---|---|---|
committer | Fabian Homborg <FHomborg@gmail.com> | 2015-09-09 20:55:04 +0200 |
commit | b85a8bbbfed56f603dca5d6da85858f9c973b669 (patch) | |
tree | aaca0722b25cff9d5e2ea5b46ad6e7dc59d9ec6d /share/completions/scp.fish | |
parent | 925f4517739ed564edcac6dd5ed29c2835461da9 (diff) |
Rename sgrep to __fish_sgrep
Makes it harder to cause issues with aliases, see fish-shell#2245
Diffstat (limited to 'share/completions/scp.fish')
-rw-r--r-- | share/completions/scp.fish | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/share/completions/scp.fish b/share/completions/scp.fish index f791b8af..32b1d06e 100644 --- a/share/completions/scp.fish +++ b/share/completions/scp.fish @@ -24,14 +24,14 @@ complete -c scp -d Hostname -a " # # Remote path # -complete -c scp -d "Remote Path" -n "commandline -ct|sgrep -o '.*:'" -a " +complete -c scp -d "Remote Path" -n "commandline -ct| __fish_sgrep -o '.*:'" -a " ( #Prepend any user@host information supplied before the remote completion - commandline -ct|sgrep -o '.*:' + commandline -ct| __fish_sgrep -o '.*:' )( #Get the list of remote files from the specified ssh server - ssh (commandline -c|sgrep -o '\-P [0-9]*'|tr P p) -o \"BatchMode yes\" (commandline -ct|sed -ne 's/\(.*\):.*/\1/p') ls\ -dp\ (commandline -ct|sed -ne 's/.*://p')\* 2> /dev/null + ssh (commandline -c| __fish_sgrep -o '\-P [0-9]*'|tr P p) -o \"BatchMode yes\" (commandline -ct|sed -ne 's/\(.*\):.*/\1/p') ls\ -dp\ (commandline -ct|sed -ne 's/.*://p')\* 2> /dev/null ) " |