Skip to content

Instantly share code, notes, and snippets.

@GrumpyChunks
Last active September 28, 2020 09:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save GrumpyChunks/d3e939806b8c730b51ddd8b723f99786 to your computer and use it in GitHub Desktop.
Save GrumpyChunks/d3e939806b8c730b51ddd8b723f99786 to your computer and use it in GitHub Desktop.
This line should be added to .bashrc to give a nice colour bash prompt with three distinct sections. Each section uses a different background colour, and when used with the 'Hack Nerd Regular' font (sudo apt install fonts-hack-ttf), there are nice transitions between the background colours.
PS1="\[\033[0;37m\]\[\033[44m\] \u \[\033[0;34m\]\[\033[43m\]\[\033[1;30m\] \h \[\033[0;33m\]\[\033[42m\]\[\033[0;37m\]\[\033[42m\] \w \[\033[0m\]\[\033[0;32m\] \[\033[0m\]"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment