Skip to content

Instantly share code, notes, and snippets.

@rogervila
Created June 28, 2018 07:47
Show Gist options
  • Save rogervila/e11b71eeb88947cb89e51b1cd34284af to your computer and use it in GitHub Desktop.
Save rogervila/e11b71eeb88947cb89e51b1cd34284af to your computer and use it in GitHub Desktop.
Bash PS1 templates
# Examples generated from http://bashrcgenerator.com/
# Green
export PS1=export PS1="\[\033[38;5;231m\]\t\[$(tput sgr0)\]\[\033[38;5;15m\] \[$(tput sgr0)\]\[\033[38;5;85m\]\u@\h\[$(tput sgr0)\]\[\033[38;5;15m\]:\[$(tput sgr0)\]\[\033[38;5;195m\][\w]\[$(tput sgr0)\]\[\033[38;5;17m\]:\[$(tput sgr0)\]\[\033[38;5;15m\]\[$(tput sgr0)\]"
# Red
export PS1="\t \[$(tput sgr0)\]\[\033[38;5;9m\]\u@\h\[$(tput sgr0)\]\[\033[38;5;15m\]:\[$(tput sgr0)\]\[\033[38;5;1m\][\w]:\[$(tput sgr0)\]\[\033[38;5;15m\] \[$(tput sgr0)\]"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment