Last active
November 16, 2019 19:17
-
-
Save rootux/b5b034f89d946665fc53673049b9c36c to your computer and use it in GitHub Desktop.
my Git ~./bash_profile and some more
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
alias gcd='git checkout development' | |
alias gc='git checkout' | |
alias gcb='git checkout -b' | |
alias gs='git status' | |
alias gb='git branch' | |
alias gcm='git checkout master' | |
alias gp='git pull' | |
alias gl='git log --oneline --decorate --graph' | |
alias gbdl='git branch --merged | egrep -v "(^\*|master|dev)" | xargs git branch -d' | |
if which rbenv > /dev/null; then eval "$(rbenv init -)"; fi | |
alias mysql=/usr/local/mysql/bin/mysql | |
alias mysqladmin=/usr/local/mysql/bin/mysqladmin | |
alias kill_node="kill -9 $(lsof -t -i:3000 -sTCP:LISTEN)" | |
export PATH=~/Library/Python/2.7/bin:$PATH | |
export NVM_DIR="$HOME/.nvm" | |
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm | |
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion | |
alias ls='ls -G' | |
export PS1="$ " |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Added
alias gbdl='git branch --merged | egrep -v "(^\*|master|dev)" | xargs git branch -d'
- That deletes all local merged branches