Created
April 1, 2011 09:06
-
-
Save rdougan/897917 to your computer and use it in GitHub Desktop.
My .profile file
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
# Paths | |
export PATH=/Applications/TextMate.app/Contents/Resources:$PATH | |
export PATH=/opt/local/bin:/opt/local/sbin:$PATH | |
export MANPATH=/opt/local/share/man:$MANPATH | |
export PATH=/opt/apache/bin:$PATH | |
export PATH=/opt/php5/bin:$PATH | |
export PATH=/usr/local/mysql/bin:$PATH | |
export PATH=/usr/local/pgsql/bin:$PATH | |
export PATH=/Users/Robert/github/ivy/bin:$PATH | |
# svn and git editor | |
export SVN_EDITOR='mate -w' | |
export GIT_EDITOR='mate -w' | |
############################################ | |
# Aliases | |
############################################ | |
# git | |
alias gs="git status" | |
alias ga="git add ." | |
alias gr="git rm" | |
alias gd="git diff" | |
alias gb="git branch" | |
alias gba="git branch -a" | |
alias gp="git push" | |
alias gpl="git pull" | |
alias gplom="git pull origin master" | |
alias gc="git commit" | |
alias gcm="git checkout master" | |
alias gsi="git submodule init" | |
alias gsu="git submodule update" | |
alias gsa="git submodule add" | |
#heroku | |
alias gph="git push heroku master" | |
# bash profile | |
alias sp="source ~/.profile" | |
alias pro="mate ~/.profile" | |
# git | |
source ~/.git-completion.bash | |
function parse_git_branch { | |
ref=$(git-symbolic-ref HEAD 2> /dev/null) || return | |
echo "("${ref#refs/heads/}")" | |
} | |
RED="\[\033[0;31m\]" | |
YELLOW="\[\033[0;33m\]" | |
GREEN="\[\033[0;32m\]" | |
PS1="$RED\$(date +%H:%M) \w$YELLOW \$(parse_git_branch)\$ " |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment