Skip to content

Instantly share code, notes, and snippets.

@j0shua
Created April 8, 2011 13:30
Show Gist options
  • Save j0shua/909832 to your computer and use it in GitHub Desktop.
Save j0shua/909832 to your computer and use it in GitHub Desktop.
.bashrc
# .bashrc
# Source global definitions
if [ -f /etc/bashrc ]; then
. /etc/bashrc
fi
# User specific aliases and functions
#0 Reset all attributes
#1 Bright
#2 Dim
#4 Underscore
#5 Blink
#7 Reverse
#8 Hidden
#Foreground Colours
fgBlack="\e[30"
fgRed="\e[31"
fgGreen="\e[32"
fgYellow="\e[33"
fgBlue="\e[34"
fgMagenta="\e[35"
fgCyan="\e[36"
fgWhite="\e[37"
#Background Colours
bgBlack="40m"
bgRed="41m"
bgGreen="42m"
bgYellow="43m"
bgBlue="44m"
bgMagenta="45m"
bgCyan="46m"
bgWhite="47m"
#START="$fgCyan;$bgBlack"
START="$fgCyan;"
END="\e[0m"
export PS1="$START[--==[ \T - \u@\h ]==--]$END\n[\w]$ "
#export PS1="$START[--==[\T :: \u@\h]==--]$END\n[\u@\h:\w]$ "
# for node.js
export PATH=$HOME/local/node/bin:$PATH
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment