mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-02-21 01:31:55 +08:00
Fix cd prompt fail on the case that CDPATH have variables
This commit is contained in:
parent
51b5adc306
commit
1b16758d7e
@ -31,7 +31,7 @@ function __fish_complete_cd -d "Completions for the cd command"
|
||||
# in case the CDPATH directory is relative
|
||||
|
||||
builtin cd $wd
|
||||
builtin cd $i
|
||||
eval builtin cd $i
|
||||
|
||||
eval printf '"%s\tDirectory in "'$i'"\n"' (commandline -ct)\*/
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user