this post was submitted on 22 Mar 2025
15 points (89.5% liked)
Linux
6661 readers
163 users here now
A community for everything relating to the GNU/Linux operating system
Also check out:
Original icon base courtesy of lewing@isc.tamu.edu and The GIMP
founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
I'm usually not using bash locally, and remotely don't change the prompt, but Starship works in bash too.
I use Nushell with Starship (cross platform prompt) in Windows Terminal.
Path above prompt, prompt with shell name and a character, and on the right side how long the previous command took. The Character changes color from green to red when the last command exited with a non-0/-success exit code.
In a git repo folder it shows git info too - the branch symbol won't show here because here is not a nerd font with symbols; I'll add a screenshot:
collapsed inline media
Starship can show a bunch of status/state information for various tools, package managers, docker, etc.
I wouldn't show my
PROMPT_COMMAND
, but it's a nu closure so not really comparable to bash. But as I said, Starship works with Bash too.