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

fix(elvish): use $pwd for logical-path #3534

Merged
merged 1 commit into from
Jan 28, 2022

Conversation

davidkna
Copy link
Member

Description

The $PWD environment variable used by starship is not updated on startup by elvish. elvish also provides a separate $pwd variable that does get updated and seems to be be a better indicator for the current logical path.

Motivation and Context

Closes #3512

Screenshots (if appropriate):

How Has This Been Tested?

  • I have tested using MacOS
  • I have tested using Linux
  • I have tested using Windows

Checklist:

  • I have updated the documentation accordingly.
  • I have updated the tests accordingly.

The `$PWD` environment variable used by starship is not updated on startup by `elvish`. `elvish` also provides a separate `$pwd` variable that does get updated and seems to be be a better indicator for the current logical path.
Copy link
Contributor

@chipbuster chipbuster left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 Thanks for digging this up!

@andytom andytom merged commit 6ca911b into starship:master Jan 28, 2022
@andytom
Copy link
Member

andytom commented Jan 28, 2022

Thank you for the fix @davidkna and thanks for reviewing @chipbuster.

@davidkna davidkna deleted the fix-elvish-pwd branch January 28, 2022 21:36
Perniciosius pushed a commit to Perniciosius/starship that referenced this pull request Feb 21, 2022
The `$PWD` environment variable used by starship is not updated on startup by `elvish`. `elvish` also provides a separate `$pwd` variable that does get updated and seems to be be a better indicator for the current logical path.
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

Successfully merging this pull request may close these issues.

Directory is not correctly displayed when starting WezTerm with --cwd flag and elvish shell
3 participants