Skip to content

Instantly share code, notes, and snippets.

@AdamMescher
Last active December 11, 2019 01:48
Show Gist options
  • Save AdamMescher/8608b11e922dafc55958707b23b8873f to your computer and use it in GitHub Desktop.
Save AdamMescher/8608b11e922dafc55958707b23b8873f to your computer and use it in GitHub Desktop.
end-of-2019 aliases
# UTILITY
alias uu="brew update && brew upgrade"
## Get external IP address
alias ip='dig +short myip.opendns.com @resolver1.opendns.com'
## Repeat previous command with sudo
alias ffs='sudo !!'
# List all files
alias la="ls -lAF"
# NAVIGATION
alias cls="clear"
alias home="cd ~"
alias docs="cd ~/Documents"
alias down="cd ~/Downloads"
alias dev="cd ~/dev"
alias pro="cd ~/dev/projects"
alias current="cd ~/dev/projects/advent-of-code-2019"
alias cd..="cd ../"
alias ..="cd ../"
alias ...="cd ../../"
alias .3="../../../"
alias .4="../../../../"
alias .5="../../../../../"
alias .6="../../../../../../"
# NODE
alias nvmup="nvm install lts/* --reinstall-packages-from=node"
alias npmsg="npm list -g --depth 0"
alias npmsl="npm list --depth 0"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment