Skip to content

Instantly share code, notes, and snippets.

@sync
Created July 2, 2010 00:36
Show Gist options
  • Save sync/460755 to your computer and use it in GitHub Desktop.
Save sync/460755 to your computer and use it in GitHub Desktop.
export PATH=$PATH:~/.cabal/bin:~/bin
export EDITOR="/usr/bin/mate -w"
alias ll='ls -l'
alias ..='cd ..'
#######
# GIT #
#######
alias gst='git status'
alias gl='git pull'
alias gp='git push'
alias gpa='git push-all' # see [alias] in ~/.gitconfig
alias gd='git diff | mate'
alias ga='git add'
alias gcl='git config --list'
alias gc='git commit -v'
alias gca='git commit -v -a'
alias gb='git branch'
alias gbc='git branch --color'
alias gba='git branch -a'
alias gco='git checkout'
alias gdc='git-svn dcommit'
alias gk='gitk --all &'
alias gpatch='git diff master -p'
# alias up='sake git:update' - need to priorities origin vs git-svn
function gpall() {
git push rubyforge master --tags
git push origin master --tags
}
alias gitrm="git stat | grep deleted | awk '{print $3}' | xargs git rm"
alias gitx="open -b nl.frim.GitX"
parse_git_branch() {
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/(\1)/'
}
PS1="\w\$(parse_git_branch) $ "
##
# Your previous /Users/aspeed/.bash_profile file was backed up as /Users/aspeed/.bash_profile.macports-saved_2010-01-03_at_02:22:49
##
# MacPorts Installer addition on 2010-01-03_at_02:22:49: adding an appropriate PATH variable for use with MacPorts.
export PATH=/opt/local/bin:/opt/local/sbin:$PATH
# Finished adapting your PATH environment variable for use with MacPorts.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment