Skip to content

Instantly share code, notes, and snippets.

@rootux
Last active November 16, 2019 19:17
Show Gist options
  • Save rootux/b5b034f89d946665fc53673049b9c36c to your computer and use it in GitHub Desktop.
Save rootux/b5b034f89d946665fc53673049b9c36c to your computer and use it in GitHub Desktop.
my Git ~./bash_profile and some more
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="$ "
@rootux
Copy link
Author

rootux commented Nov 16, 2019

Added alias gbdl='git branch --merged | egrep -v "(^\*|master|dev)" | xargs git branch -d' - That deletes all local merged branches

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment