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

Incorrect handling of symlinks to subdirectory of git repo #7

Open
pvsr opened this issue Jun 28, 2024 · 0 comments
Open

Incorrect handling of symlinks to subdirectory of git repo #7

pvsr opened this issue Jun 28, 2024 · 0 comments

Comments

@pvsr
Copy link
Owner

pvsr commented Jun 28, 2024

ln -s ~/dev/fish-prompt-pvsr/functions ~/functions; cd ~/functions results in an entirely incorrect prompt path of ~/f/username, with the username segment highlighted as the vcs root. Even worse, mkdir ~/functions/sub; cd ~/functions/sub gives the exact same prompt. The correct prompt paths are ~/functions and ~/f/sub respectively, with vcs info but no highlighted root.

If the symlink is not directly under ~ then only the vcs root highlighting is wrong. mv ~/functions ~/dev; cd ~/dev/functions shows ~/dev/functions with dev highlighted as the root, but it should be ~/d/functions with no highlight.

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

1 participant