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

Long prompt path when using macOS Catalina #483

Closed
1 of 2 tasks
mvllow opened this issue Jul 2, 2019 · 4 comments
Closed
1 of 2 tasks

Long prompt path when using macOS Catalina #483

mvllow opened this issue Jul 2, 2019 · 4 comments

Comments

@mvllow
Copy link

mvllow commented Jul 2, 2019

General information

  • Pure version: latest release
  • ZSH version: 5.7.1 (x86_64-apple-darwin19.0)
  • Terminal program & version: Hyper 3.0.1-canary.4, Hyper 3.0.2 (stable), VSCode integrated terminal latest
  • Operating system: macOS Catalina dev beta 2
  • ZSH framework: none

I have:

  • Tested with another terminal program and can reproduce the issue:
  • Followed the Integration instructions for my framework

Problem description

When using Hyper or VSCode integrated terminal and the tab is opened (via hypercwd for Hyper) already in a directory outside of the default root, the prompt path is longer than expected. I believe macOS Catalina changed some directory patterns and is prefixed with /System/Volumes/Data/. This is not an issue in default Terminal app, however.

If this does not seem to be an issue with Pure, feel free to remove.

Reproduction steps

  1. Open Hyper and navigate to a directory (with plugin hypercwd)
  2. New tab

OR

  1. Open folder in VSCode
  2. Open integrated terminal

Screen Shot 2019-07-02 at 1 46 42 PM

(Expected prompt is ~/dev/papayawhip)

My .zshrc:

autoload -U promptinit; promptinit
prompt pure
@wanecek
Copy link

wanecek commented Jul 3, 2019

Maybe the section "create-aliases-for-really-long-directory-paths" in the Wiki can be of help? :)

@mafredri
Copy link
Collaborator

mafredri commented Jul 3, 2019

Thanks for the early report. I have a hard time believing this is a Pure issue though. The home = ~ is a shell feature and the only way I see it would behave weird is if there’s something wrong with the environment configuration. What’s the value of $HOME in each terminal?

@mvllow
Copy link
Author

mvllow commented Jul 4, 2019

This is my output (first line being part of the prompt)

/System/Volumes/Data/Users/not/dev/papayawhip
❯ echo $HOME
/Users/not

I reset my computer often, and do not configure much of anything. Both Hyper and Pure are fresh installed on a new copy of macOS Catalina.

Seeing how this issue occurs in two electron based apps (only, as far as I can tell), that may be the problem and unrelated to Pure.

Edit: @mafredri

@mvllow
Copy link
Author

mvllow commented Jul 13, 2019

This appears to be fixed now, either via an update or was something I was doing wrong. Thanks!

@mvllow mvllow closed this as completed Jul 13, 2019
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

3 participants