-
Notifications
You must be signed in to change notification settings - Fork 4.1k
CDPATH is not respected for completions #373
Copy link
Copy link
Open
Labels
area:completionsStandard shell completions, argument completions, and path completion.Standard shell completions, argument completions, and path completion.area:shell-terminalTerminal input/output, shell integration, prompt behavior, and block rendering.Terminal input/output, shell integration, prompt behavior, and block rendering.bugSomething isn't working.Something isn't working.ready-to-implementThe issue is ready for implementation work.The issue is ready for implementation work.triagedIssue has received an initial automated triage pass.Issue has received an initial automated triage pass.
Metadata
Metadata
Assignees
Labels
area:completionsStandard shell completions, argument completions, and path completion.Standard shell completions, argument completions, and path completion.area:shell-terminalTerminal input/output, shell integration, prompt behavior, and block rendering.Terminal input/output, shell integration, prompt behavior, and block rendering.bugSomething isn't working.Something isn't working.ready-to-implementThe issue is ready for implementation work.The issue is ready for implementation work.triagedIssue has received an initial automated triage pass.Issue has received an initial automated triage pass.
Describe the bug
I use
CDPATHin my.profileto add my work root, i.e.export CDPATH=.:~/dev/workin order to easily switch between repos (cd web-app, etc. – from anywhere)The commands work, but I get no tab completion for them, which is a UX downgrade compared to other terminals.
To Reproduce
Steps to reproduce:
export CDPATH=.:/some/pathto your.profile(or just run the command in a shell)cd some-dir-in-CDPATHExpected behaviour
Tab completions for
cdshould also be filled with directories from theCDPATHOperating System
MacOS
OS Version
12.0.1