Last active
January 10, 2018 00:24
-
-
Save gustavohenke/837c0e8811e9b39f00c1ad76f13ec4ed to your computer and use it in GitHub Desktop.
"Windows restart"
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Put me in your .bash_profile and enjoy rainy days reinstalling deps | |
windows_restart() { | |
rm -rf node_modules | |
if [ -f "yarn.lock" ]; then | |
yarn | |
else | |
npm install | |
fi | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment