mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-05-29 18:51:15 -03:00
Implicitly use $PWD in $CDPATH in completions and highlighting
We already do for the actual cd-ing itself. Missed in #4484. Fixes #8161.
This commit is contained in:
@@ -163,6 +163,11 @@ mkdir -p cdpath-dir/nonexistent
|
||||
mkdir -p cdpath-dir/file
|
||||
set CDPATH $PWD/cdpath-dir $old_cdpath
|
||||
|
||||
# See that the completions also check the current directory
|
||||
complete -C'cd ' | string match -q cdpath-dir/
|
||||
and echo cdpath-dir is in
|
||||
# CHECK: cdpath-dir is in
|
||||
|
||||
# A different directory with the same name that is first in $CDPATH works.
|
||||
cd bad-perms
|
||||
cd $old_path
|
||||
|
||||
Reference in New Issue
Block a user