Skip to content

Instantly share code, notes, and snippets.

View switchflip's full-sized avatar

Tom Berry switchflip

  • Toronto, Canada
View GitHub Profile
@lajlev
lajlev / .bash_profile
Created November 15, 2012 10:00
My .bash_profile pimped with coloring, intelligent path, alias for git etc
PATH="/usr:bin:/usr/local/bin:/usr/local/sbin:$PATH" # if not already present
export PATH=/usr/local/bin/psql:$PATH
PROMPT_COMMAND='DIR=`pwd|sed -e "s!$HOME!~!"`; if [ ${#DIR} -gt 20 ]; then CurDir=${DIR:0:5}...${DIR:${#DIR}-15}; else CurDir=$DIR; fi'
#PS1="[\$CurDir] \$ "
function color_my_prompt {
local __user_and_host="\[\033[01;32m\]\u@\h"
local __cur_location="\[\033[01;34m\]\w"