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

Directory module doesn't show anything following symboling link to git repo #4577

Open
kamialie opened this issue Nov 7, 2022 · 0 comments
Labels
🐛 bug Something isn't working as expected.

Comments

@kamialie
Copy link

kamialie commented Nov 7, 2022

Current Behavior

No directory path is shown at all.

Expected Behavior

Directory path with truncated git repository name.

Additional context/Screenshots

To reproduce this behavior perform the following:

  1. Clone a git repository (e.g. repo_one)
  2. Create a directory inside the repository (e.g. foo)
  3. Create a soft link outside repository to the newly created directory
    ln -s repo_one/foo bar
  4. Follow newly created soft link
    cd bar

I was able to narrow down the absent directory ouput in the configuration. It seems to be related to repo_root_style option in directory module. As soon as I remove it, the current path is shown. However, it doesn't fix the problem with no git repo name truncation.

I included my current shell environment, fish, but same happens in bash as well.

Environment

  • Starship version: 1.11.0
  • fish version: fish, version 3.5.1
  • Operating system: Mac OS 12.6.0
  • Terminal emulator: iTerm.app 3.4.16
  • Git Commit Hash:
  • Branch/Tag:
  • Rust Version: rustc 1.64.0
  • Rust channel: release
  • Build Time: 2022-10-15 01:40:28 +00:00

Relevant Shell Configuration

if status is-interactive
    starship init fish | source
end

Starship Configuration

[directory]
repo_root_style = "bold green"
@kamialie kamialie added the 🐛 bug Something isn't working as expected. label Nov 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 bug Something isn't working as expected.
Projects
None yet
Development

No branches or pull requests

1 participant