Skip to content
This repository has been archived by the owner on Jun 2, 2022. It is now read-only.

User home directory path doesn't use tilde #757

Closed
MikaelSmith opened this issue Mar 16, 2020 · 0 comments · Fixed by #760
Closed

User home directory path doesn't use tilde #757

MikaelSmith opened this issue Mar 16, 2020 · 0 comments · Fixed by #760
Assignees
Labels
bug Something isn't working

Comments

@MikaelSmith
Copy link
Contributor

If I cd ~, I'd expect the prompt path to use ~ rather than the absolute path. I see

wash /Users/michaelsmith ❯ cd Documents
wash /Users/michaelsmith/Documents ❯

I'd expect to see

wash ~ ❯ cd Documents
wash ~/Documents ❯
@MikaelSmith MikaelSmith added the bug Something isn't working label Mar 16, 2020
@MikaelSmith MikaelSmith self-assigned this Mar 26, 2020
MikaelSmith added a commit to MikaelSmith/wash that referenced this issue Mar 26, 2020
Replace use of `realpath` with string substitution. If not in a Wash
directory tree, but we are in the HOME directory tree, replace `$HOME`
with `~`.

Fixes puppetlabs-toy-chest#757.

Signed-off-by: Michael Smith <[email protected]>
MikaelSmith added a commit to MikaelSmith/wash that referenced this issue Mar 26, 2020
Replace use of `realpath` with string substitution. If not in a Wash
directory tree, but we are in the HOME directory tree, replace `$HOME`
with `~`.

Fixes puppetlabs-toy-chest#757.

Signed-off-by: Michael Smith <[email protected]>
MikaelSmith added a commit to MikaelSmith/wash that referenced this issue Mar 26, 2020
Replace use of `realpath` with string substitution. If not in a Wash
directory tree, but we are in the HOME directory tree, replace `$HOME`
with `~`.

Fixes puppetlabs-toy-chest#757.

Signed-off-by: Michael Smith <[email protected]>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant