Skip to content

CDPATH is not respected for completions #373

@ephemer

Description

@ephemer

Describe the bug

I use CDPATH in my .profile to add my work root, i.e. export CDPATH=.:~/dev/work in 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:

  1. Add export CDPATH=.:/some/path to your .profile (or just run the command in a shell)
  2. Type cd some-dir-in-CDPATH
  3. Press Tab

Expected behaviour

Tab completions for cd should also be filled with directories from the CDPATH

Operating System

MacOS

OS Version

12.0.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:completionsStandard shell completions, argument completions, and path completion.area:shell-terminalTerminal input/output, shell integration, prompt behavior, and block rendering.bugSomething isn't working.ready-to-implementThe issue is ready for implementation work.triagedIssue has received an initial automated triage pass.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions