Skip to content

Instantly share code, notes, and snippets.

@c0d3st0rm
c0d3st0rm / .bashrc
Created December 12, 2015 15:03
PS1 prompt no. 1
# a nice bash prompt
# put this at the end of your .bashrc file
# these separate colors below allow you to change them easily (see https://wiki.archlinux.org/index.php/Color_Bash_Prompt#List_of_colors_for_prompt_and_Bash)
# these colors are designed to go with a dark terminal background (and it's probably best if you have colors enabled for the prompt too)
PS1_SEP="\[\033[00;36m\]" # separators
PS1_OK="\[\033[01;32m\]" # OK (return value wise)
PS1_ERR="\[\033[01;31m\]" # error (return value wise)
PS1_HNAME="\[\033[01;34m\]" # hostname
PS1_CWD="\[\033[01;36m\]" # current working directory
PS1_TIME="\[\033[00;36m\]" # time/date