Created
February 3, 2011 15:19
-
-
Save swerner/809604 to your computer and use it in GitHub Desktop.
.profile
This file contains hidden or 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
export PATH=/usr/local/bin:$PATH | |
export PATH=~/bin/Applications/MAMP/bin/php5.2/bin:$PATH | |
export PATH=/Applications/MAMP/Library/bin:$PATH | |
export PATH=/opt/local/lib/postgresql83/bin:$PATH | |
export PATH=/opt/local/bin:/opt/local/sbin:$PATH | |
#Load RVM | |
[[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm" | |
#Alias shortcuts for common directories | |
alias wwcms='cd ~/Sites/wwcms.new' | |
alias 0002='cd ~/Sites/wwcms.new/frontends/0002_WTW_design' | |
alias 1927='cd ~/Sites/wwcms.new/frontends/1927_CMU' | |
alias 1956='cd ~/Sites/wwcms.new/frontends/1956_GTY' | |
alias 1922='cd ~/Sites/wwcms.new/frontends/1922_AMN' | |
alias 2064='cd ~/Sites/wwcms.new/frontends/2064_FOR' | |
alias 1826='cd ~/Sites/wwcms.new/frontends/1826_LAS' | |
alias front='cd ~/Sites/wwcms.new/frontends/' | |
#Rake/CAP autocomplete | |
source ~/.rake_cap_bash_autocomplete.sh | |
#Find which is the current frontend | |
parse_current_frontend(){ | |
cat ~/Sites/wwcms.new/frontend | |
} | |
RED="\[\033[0;31m\]" | |
YELLOW="\[\033[0;33m\]" | |
GREEN="\[\033[0;32m\]" | |
WHITE='\e[1;37m' | |
#Git completion | |
source /usr/local/git/contrib/completion/git-completion.bash | |
#Prompt | |
PS1="$RED**\$(parse_current_frontend)** \w$YELLOW" | |
PS1=$PS1:'$(__git_ps1 " (%s)")' | |
PS1=$PS1:"$GREEN\$ $WHITE" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment