Skip to content

Instantly share code, notes, and snippets.

@uhtred
Created October 31, 2016 11:35
Show Gist options
  • Save uhtred/f0cd723f9b0a160ad94614109675c64e to your computer and use it in GitHub Desktop.
Save uhtred/f0cd723f9b0a160ad94614109675c64e to your computer and use it in GitHub Desktop.
SH: Alias
alias nginx-service="sudo service nginx"
alias nginx-conf-rw="sudo subl /etc/nginx/conf.d/realwave-ui.conf"
alias edit-hosts="subl /etc/hosts"
alias edit-alias="subl ~/.oh-my-zsh/custom/alias.zsh"
alias rm-node-modules="rm -rf node_modules"
alias rm-bower-components="rm -rf bower_components"
alias npm-fresh-install="rm-node-modules && npm cache clean && npm install && bower cache clean"
alias gmtmeld="git mergetool --tool=meld"
alias reveal="xdg-open ."
alias git-reset-branch="git reset --hard origin/"
alias kill-port="fuser -k"
alias git-reset-file="gco HEAD -- "
alias git-remove-merged-branches="git branch --merged | grep -v "\*" | grep -v master | grep -v qa | xargs -n 1 git branch -d"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment