Skip to content

Instantly share code, notes, and snippets.

@HeroicEric
Created June 25, 2011 16:44
Show Gist options
  • Save HeroicEric/1046647 to your computer and use it in GitHub Desktop.
Save HeroicEric/1046647 to your computer and use it in GitHub Desktop.
[[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm" # Load RVM function
txtred='\033[0;31m'
txtgrn='\033[0;32m'
txtcya='\033[0;36m'
txtpur='\033[;35m'
txtrst='\e[0m' # Text Reset
print_before_the_prompt () {
printf "$txtpur$USER: $PWD\n"
}
PROMPT_COMMAND=print_before_the_prompt
if [ $? = 0 ] ; then
PS1="$txtcya--> $txtrst";
else
PS1="$txtred--> $txtrst";
fi
export CLICOLOR=1
export LSCOLORS=ExFxCxDxBxegedabagacad
# Open with Sublime Text 2
alias slime='open -a "/Applications/Sublime Text 2.app"'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment