Skip to content

Instantly share code, notes, and snippets.

@etissieres
Created January 28, 2014 10:02
Show Gist options
  • Save etissieres/8664987 to your computer and use it in GitHub Desktop.
Save etissieres/8664987 to your computer and use it in GitHub Desktop.
Bash variables to custom prompt
default="\[\e[39m\]"
black="\[\e[30m\]"
red="\[\e[31m\]"
green="\[\e[32m\]"
yellow="\[\e[33m\]"
blue="\[\e[34m\]"
magenta="\[\e[35m\]"
cyan="\[\e[36m\]"
gray="\[\e[90m\]"
white="\[\e[97m\]"
reset="\[\e[0m\]"
bold="\[\e[1m\]"
underline="\[\e[4m\]"
PS1="$bold$red[\D{%H:%M:%S}]$green\u@\h$white:$blue\w$reset$ "
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment