Created
February 12, 2015 20:02
-
-
Save erinpagemd/599bbbd766780c0bacc6 to your computer and use it in GitHub Desktop.
bash profile ~/.bash_profile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |
export EDITOR=vim | |
export SHELL=/bin/bash | |
export CLICOLOR=1 | |
export LSCOLORS=GxFxCxDxBxegedabagaced | |
export NODE_HOME=/usr/local/node/bin | |
export PATH=$NODE_HOME:$PATH | |
alias ls='ls' | |
alias l='ls -a' | |
alias ll='ls -lahp' | |
alias b='cd ..' | |
alias c='clear' | |
alias pom='push origin master' | |
branch() | |
{ | |
git branch 2> /dev/null | awk '/\*/ {print "#" $2;}' | |
} | |
status() | |
{ | |
git status --porcelain 2> /dev/null | wc | awk '{if($1 > 0)print"+";}' | |
} | |
export PS1="$txtcyn\u$txtred@$txtcyn\h $txtred\w $txtylw\$(status)$txtgrn\$(branch)$txtcyn:$txtrst " | |
[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" # Load RVM into a shell session *as a function* |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment