#7714·starship

Symlink into subdirectory of repo doesn't show path in prompt

Author: PatrickShawCreated Sep 1, 2026Updated Sep 1, 2026
Labels🐛 bug

Current Behavior

If you have a symlink that points sideways into a subdirectory of a repo, cd ing into results in no path being shown in the starship prompt at all.

Example:

  1. ~/code/me is the repo
  2. ~/code/me/private is a directory in that repo
  3. ~/code/example symlinks into ~/code/me/private
  4. If ~/code/example is your CWD you will see no preview directory

Expected Behavior

In example step 4 I would expect ~/code/example to be shown as my path in the prompt

Additional context/Screenshots

Possible Solution

From what I can see, it looks like https://github.com/starship/starship/blob/e939a19ab777d64be2003c6f9c4c683ab1292945/src/modules/directory.rs#L115 hits the None case in my example? We could just default to prefix + dir_string.as_str() like some of the other fallback branches.

Environment

  • Starship version: 1.26.0
  • fish version: fish, version 4.8.1
  • Operating system: Mac OS 15.7.9
  • Terminal emulator: ghostty 1.3.1
  • Git Commit Hash:
  • Branch/Tag:
  • Rust Version: rustc 1.97.0 (2d8144b78 2026-07-07) (built from a source tarball)
  • Rust channel: release
  • Build Time: 1980-01-01 00:00:00 +00:00

Starship Configuration

https://github.com/PatrickShaw/patrickshaw/blob/main/personal/dotfiles/starship/starship.toml