Skip to content

Instantly share code, notes, and snippets.

@fjarrett
Last active March 15, 2017 22:45
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 fjarrett/7b456b60abf40294e812ebcc383bc3bc to your computer and use it in GitHub Desktop.
Save fjarrett/7b456b60abf40294e812ebcc383bc3bc to your computer and use it in GitHub Desktop.
Collection of simple PS1s for bash profiles
# HH:MM:SS [cwd] $
export PS1="\t [\W] \\$ "
# HH:MM:SS [cwd] $ (colorized)
export PS1="\[\e[37m\]\t\[\e[m\] \[\e[36m\][\[\e[m\]\[\e[36m\]\W\[\e[m\]\[\e[36m\]]\[\e[m\] \[\e[32m\]\\$\[\e[m\] "
# user@host [/path/to/cwd] $
export PS1="\u@\h [\w] \\$ "
# user@host [/path/to/cwd] $ (colorized)
export PS1="\[\e[35m\]\u\[\e[m\]@\[\e[31m\]\h\[\e[m\] \[\e[36m\][\[\e[m\]\[\e[36m\]\w\[\e[m\]\[\e[36m\]]\[\e[m\] \[\e[32m\]\\$\[\e[m\] "
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment