Closed
Description
Describe the bug
I have been using CDPATH
successfully for years, but a few months ago, the autocomplete function stopped working.
export CDPATH=".:~/projects"
I can still use it directly, eg. cd dotfiles
to go into cd ~/projects/dotfiles
, but typing cd dot<TAB>
doesn't show any directory to autocomplete the name.
Workaround
As a workaround, I can do the following and it works as expected:
complete -o nospace -F _cd cd
Versions (please complete the following information)
- Operating system name/distribution and version: macOS
- bash version,
echo "$BASH_VERSION"
: 5.2.26(1)-release - bash-completion version,
(IFS=.; echo "${BASH_COMPLETION_VERSINFO[*]}")
: 2.14.0
Additional context
Some extra information that could be relevant. This is the output when is not working:
$ complete | grep " cd$"
complete -d cd
Metadata
Metadata
Assignees
Labels
No labels