Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
~/.bash_profile
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/'
}
. ~/.z.sh
# 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/nvm.sh ]] && . /Users/ask/.nvm/nvm.sh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.