Share your Bash prompts!
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.
::: spoiler References
1. Type: Documentation. Title: "Bash Reference Manual". Publisher: Gnu Project. Edition: 5.2. Published: 2022-09-19. Accessed: 2025-03-21T02:46Z. URI: gnu.org/software/bash/manual/hβ¦.
- Β§6.9 "Controlling the Prompt". URI: gnu.org/software/bash/manual/hβ¦.
:::
Crossposts:
- sh.itjust.works/post/34840017
This entry was edited (2 months ago)
z3rOR0ne
in reply to Kalcifer • • •TheFadingOne
in reply to Kalcifer • • •Richard
in reply to Kalcifer • • •computer /usr/share/ $>
Mike Wooskey
in reply to Kalcifer • • •Mine shows the user and host, git commit and branch, docker context and directory, color coded based on status of git:
[root@server001|G:19e526e@(master)|D:myContext|currentDir] $
Daniel Quinn
in reply to Kalcifer • • •My shit is custom and rather elaborate.
From left-to-right:
/
:
commitThe code for this is on GitLab.
dotfiles/.bash_prompt Β· master Β· Daniel Quinn / Handy Scripts Β· GitLab
GitLabpewpew
in reply to Kalcifer • • •Ok after viewing your prompts I noticed that mine is kinda lame