Skip to content

Instantly share code, notes, and snippets.

@chris-burgin
Last active December 4, 2017 15:07
Show Gist options
  • Save chris-burgin/d4b1e6c66eea470f03cfe11dffe5ee4a to your computer and use it in GitHub Desktop.
Save chris-burgin/d4b1e6c66eea470f03cfe11dffe5ee4a to your computer and use it in GitHub Desktop.
Aliases I use on a daily basis to make my life just a bit easier.
# Place these in your ZSH or BASH config
# Other
alias please='sudo $(fc -ln -1)' # runs the previous command with `sudo`
# Editors
alias c="code ." # open the current directory in vscode
alias v="vim" # vim shortcut
# npm
alias nr="npm run " # npm run shortcut
# zsh
alias zrc="vim ~/.zshrc" # shortcut to edit zsh config
alias szrc="source ~/.zshrc" # shortcut to source zsh config
# Git
alias gac="git add . && gc" # stage everything and commit in git
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment