• 0 Posts
  • 4 Comments
Joined 2 years ago
cake
Cake day: June 11th, 2023

help-circle



  • 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.

    ~
    nu ❯                                  took 52ms
    

    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:

    C:\dev\dotnet\meercat-monitor on  main [?]
    nu ❯                                                                took 1ms 
    

    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.