Created
December 9, 2014 06:45
-
-
Save alekseykulikov/fb388dad57e15852fe10 to your computer and use it in GitHub Desktop.
~/.bash_profile
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
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