Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
export PATH=/usr/local/bin:/usr/local/share/npm/bin:$PATH
PS1="\w \[\033[32m\]\$(parse_git_branch) \[\033[37m\]$\[\033[00m\] "
alias ll='ls -alFG'
# git aliases
alias ga='git add -A && gc'
alias gb='git branch'
alias gc='git commit -v'
alias gd='git diff'
alias gh='git hist'
alias gl='git log -p'
alias gp='parse_git_branch | xargs -I % git push --tags origin %'
alias gr='parse_git_branch | xargs -I % git pull --rebase origin %'
alias gs='git status'
alias gt='git tag'
parse_git_branch() {
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/\1/'
. ~/
# handle EMFILE error, for big project
ulimit -n 2560
# ruby
export RBENV_ROOT=/usr/local/opt/rbenv
eval "$(rbenv init -)"
# bundle
export BUNDLER_EDITOR=subl
alias be='bundle exec'
# this loads NVM
[[ -s /Users/ask/.nvm/ ]] && . /Users/ask/.nvm/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment