mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-26 10:43:47 +08:00
still didn't work correctly, there were delimiters missing in the conditional as well
This commit is contained in:
parent
b2887477e3
commit
1ae44c6b3c
|
@ -18,7 +18,7 @@ function __fish_complete_cd -d "Completions for the cd command"
|
|||
end
|
||||
|
||||
|
||||
if echo (commandline -ct)|sgrep '^/\|^\./\|^\.\./' >/dev/null
|
||||
if echo '(commandline -ct)'|sgrep '^/\|^\./\|^\.\./' >/dev/null
|
||||
# This is an absolute search path
|
||||
eval printf '\%s\\tDirectory\\n' '(commandline -ct)'\*/
|
||||
else
|
||||
|
|
Loading…
Reference in New Issue
Block a user