Skip to content

Instantly share code, notes, and snippets.

@PBlanco
Created June 26, 2017 13:31
Show Gist options
  • Save PBlanco/9b63750dac5def19c49ef70c13e86f3d to your computer and use it in GitHub Desktop.
Save PBlanco/9b63750dac5def19c49ef70c13e86f3d to your computer and use it in GitHub Desktop.
Custom Terminal
#git
alias git-clean="git branch --merged | grep -v "\*" | xargs -n 1 git branch -d"
alias up="git pull && npm i && npm run migrate"
alias gs="git status"
# open applications
alias code='open $@ -a "Visual Studio Code"'
# show or hide hidden files
alias showfiles='defaults write com.apple.finder AppleShowAllFiles YES; killall Finder /System/Library/CoreServices/Finder.app'
alias hidefiles='defaults write com.apple.finder AppleShowAllFiles NO; killall Finder /System/Library/CoreServices/Finder.app'
# add Developer folder to cd path for quick access to repos from anywhere
CDPATH=".:$HOME/Developer/"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment