Skip to content

Instantly share code, notes, and snippets.

@chyld
Created September 19, 2013 01:41
Show Gist options
  • Save chyld/6618124 to your computer and use it in GitHub Desktop.
Save chyld/6618124 to your computer and use it in GitHub Desktop.
txtblk='\[\e[0;30m\]' # Black
txtred='\[\e[0;31m\]' # Red
txtgrn='\[\e[0;32m\]' # Green
txtylw='\[\e[0;33m\]' # Yellow
txtblu='\[\e[0;34m\]' # Blue
txtpur='\[\e[0;35m\]' # Purple
txtcyn='\[\e[0;36m\]' # Cyan
txtwht='\[\e[0;37m\]' # White
txtrst='\[\e[0m\]' # Text Reset
alias ls="ls --color=auto"
alias l='ls -a'
alias b='cd ..'
alias s='subl .'
[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" # Load RVM into a shell session *as a function*
function branch
{
git status 2> /dev/null | ruby ~/Code/Scripts/branch.rb
}
PS1="$txtred\w$txtgrn\$(branch)$txtblk :$txtrst "
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment