Skip to content

Instantly share code, notes, and snippets.

@francois-dibulo
Last active February 3, 2017 08:04
Show Gist options
  • Save francois-dibulo/bfbab3b2be76e485cff63f34fb89032d to your computer and use it in GitHub Desktop.
Save francois-dibulo/bfbab3b2be76e485cff63f34fb89032d to your computer and use it in GitHub Desktop.
Bash-Profile Useful Commands (Mac OS)
### GIT ###
# Show not merged branches
alias gitnotmerged="git branch --no-merged master"
# Delete all merged branches
alias gitclean='git branch --merged | grep -v "\*" | xargs -n 1 git branch -d'
# Update all submodules
alias gitupdatesub="git submodule foreach git pull origin master"
### OTHER ###
# Makes a zip of the current directory
alias zipthis="zip -r -X archive.zip ."
# Android Log output of a cordova app
alias adb_log_chrome="adb -d logcat chromium:D *:S"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment