Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Terminal suggest: Support resolving environment variables in directories #234353

Open
Tyriar opened this issue Nov 21, 2024 · 0 comments
Open

Terminal suggest: Support resolving environment variables in directories #234353

Tyriar opened this issue Nov 21, 2024 · 0 comments
Assignees

Comments

@Tyriar
Copy link
Member

Tyriar commented Nov 21, 2024

This is somewhat shell-dependent:

  • We want cd $HOME to show the actual home directory on the right side. Currently our pwsh support doesn't do this:

    Image

    But it does resolve the actual path and show it for . and ..:

    Image

  • We want cd $HOME/ to provide the same completions as cd ~/ for the resolved $HOME folder

  • This is not just for $HOME but for any environment variable

  • Different shells may have different syntax for this, but the above is the baseline which works in the majority of shells (including pwsh). Interestingly cd ${env:HOME} works when run in pwsh but cd ${env:HOME}\source and cd "${env:HOME}\source" do not

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants