starship / starship

☄🌌️ The minimal, blazing-fast, and infinitely customizable prompt for any shell!
https://starship.rs
ISC License
44.18k stars 1.92k forks source link

Directory path on prompt does not update #4680

Open iArmanKarimi opened 1 year ago

iArmanKarimi commented 1 year ago

Bug Report

Current Behavior

Directory path on prompt does not update.

Expected Behavior

To update directory when I cd.

Additional context/Screenshots

image

Possible Solution

Environment

Relevant Shell Configuration

# Your configuration here

Starship Configuration

# Your configuration here
davidkna commented 1 year ago

Please share more details about your setup.

iArmanKarimi commented 1 year ago

I just appended the command eval "$(starship init bash)" to the end of my .bashrc.

KasperSkytte commented 1 year ago

I have the same problem on Ubuntu 22.04 jammy when using bash as shell. But when using zsh it updates correctly. I use starship version 1.14.2 installed at ~/.local/bin/starship. I've only added the eval "$(starship init bash)" line to ~/.bashrc and configuration is irrelevant it seems, same result no matter using my own configuration or a preset.