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/functions/__fish_complete_cd.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/functions/__fish_complete_cd.fish')
-rw-r--r-- | share/functions/__fish_complete_cd.fish | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/share/functions/__fish_complete_cd.fish b/share/functions/__fish_complete_cd.fish index 1975eab2..de38e436 100644 --- a/share/functions/__fish_complete_cd.fish +++ b/share/functions/__fish_complete_cd.fish @@ -18,7 +18,7 @@ function __fish_complete_cd -d "Completions for the cd command" # That trailing slash ensures that we only expand directories set -l ctoken (commandline -ct) - if echo $ctoken | sgrep '^/\|^\./\|^\.\./\|^~/' >/dev/null + if echo $ctoken | __fish_sgrep '^/\|^\./\|^\.\./\|^~/' >/dev/null # This is an absolute search path # Squelch descriptions per issue 254 eval printf '\%s\\n' $ctoken\*/ |