I’m looking for inspiration for a custom Bash prompt[1]. I’d love to see yours! 😊 If possible, include both the prompt’s PS1
, and a screenshot/example of what it looks like.
References
- Type: Documentation. Title: “Bash Reference Manual”. Publisher: Gnu Project. Edition: 5.2. Published: 2022-09-19. Accessed: 2025-03-21T02:46Z. URI: https://www.gnu.org/software/bash/manual/html_node/index.html.
- §6.9 “Controlling the Prompt”. URI: https://www.gnu.org/software/bash/manual/html_node/Controlling-the-Prompt.html.
Crossposts:
Ok after viewing your prompts I noticed that mine is kinda lame
C:\>
/s
Do you have anything to check whether the current directory is under
/media/
or/mnt/
so that you can change the drive letter according to a deterministic assignment?/s
HA, that’s so cursed. I love it.
Convert the PWD value to use backslashes, too, for extra cursedness.
c/FoundSatan
I use Starship
Same. I guess, this is the Starship thread now. My config:
I adapted it from the Gruvbox Rainbow theme.
I can post my config, if anyone wants specifically that. (It does kind of assume a light background, though.)
I’m using fish and the default is enough for anybody. 😁
I love it! You get git and virtual env integration for free :)