Skip to content

Instantly share code, notes, and snippets.

@kpumuk
Created August 24, 2009 20:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kpumuk/174148 to your computer and use it in GitHub Desktop.
Save kpumuk/174148 to your computer and use it in GitHub Desktop.
# Bash completition for Git
[ -f ~/.git-bash-completion.sh ] && . ~/.git-bash-completion.sh
export LANG=ru_RU.UTF-8
export QTDIR=/opt/local/lib/qt3
# Add ~/bin, /opt/local/bin and /opt/local/sbin to path
export PATH=$HOME/bin:/opt/local/bin:/opt/local/apache2/bin:/opt/thrift/bin:/opt/local/sbin:/opt/jruby/bin:$PATH
# Setup some environment variables
export PS1='\w$(__git_ps1 " (\[\e[0;32m\]%s\[\e[0m\])")$ '
export GREP_OPTIONS="--color=auto"
export MANPATH=/opt/local/man:$MANPATH
export EDITOR=mate
# Some Java variables
export JAVA_HOME='/System/Library/Frameworks/JavaVM.framework/Home'
export ANT_HOME='/Developer/Java/ant'
# Ruby Enterprise Edition
alias ree="/opt/rubyee/bin/ruby"
alias rakee="/opt/rubyee/bin/rake"
alias gemee="sudo /opt/rubyee/bin/gem"
# Some helpful aliases
alias ls="ls -GF"
alias ll="ls -lhF"
alias apache2ctl='sudo /opt/local/apache2/bin/apachectl'
alias m="mate ."
alias rip="/Work/btv/btv.git/script/ripper/ripper"
alias ss="script/server"
alias s="RUBY_GC_MALLOC_LIMIT=64000000 ree `which spec` -c spec"
alias capl="cap loops deploy:lock MESSAGE='USE qa, not loops. loops is locked down permanently'"
# Some dir aliases
alias cds="cd /Work/scribd/scribd.git"
alias cdo="cd /Work/scribd/ops.git"
alias cdb="cd /Work/btv/btv.git"
# Some Git aliases
alias ga="git add"
alias gb="git branch"
alias gc="git checkout"
alias gd="git diff"
alias gci="git commit"
alias gg='git log --graph --pretty=format:"%Cred%h%Creset — %s %Cgreen(%cr)%Creset" --abbrev-commit --date=relative'
alias gl="git pull"
alias gm="git merge"
alias gp="git push"
alias gs="git status"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment