DEV Community

Discussion on: Command Line Snippets do you keep handy?

brycehipp profile image
Bryce Hipp • Edited on

A few handy snippets that I've made into aliases

# Get OS X Software Updates, and update installed Ruby gems, Homebrew, npm, and their installed packages
alias update='sudo softwareupdate -i -a; brew update; brew upgrade; brew cleanup; npm install npm -g; npm update -g; sudo gem update --system; sudo gem update'

# Clear out node_modules and re-install everything
alias yarn.please="printf 'Removing node_modules folder...' && rm -rf node_modules && yarn"
alias npm.please="printf 'Removing node_modules folder...' && rm -rf node_modules && npm i"
jrohatiner profile image
Judith Author

great suggestions!