Share your Bash prompts!
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.
Crossposts:
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.
Crossposts:
bash
export PS1="\[\e[31m\][\[\e[m\]\[\e[38;5;172m\]\u\[\e[m\]@\[\e[38;5;153m\]\h\[\e[m\] \[\e[38;5;214m\]\W\[\e[m\]\[\e[31m\]]\[\e[m\]\\$ "
That's a warcrime.
How so? What does this do?
Best I can tell is itâs a normal `username@hostname current_directory$ sorta prompt with some coloring: âą Red for the square brackets âą Orange (color 172) for the username âą Light blue (color 153) for the hostname âą Amber (color 214) for the current working directory
Other than being hard to read from the embedded coloring Iâm not sure why this is a war crime.