Repository of common scripts I run.
-
Create a copy of the script file to your local/bin directory
cp red.sh /usr/local/bin/red
-
Make the copy file an executable
chmod +x /usr/local/bin/red
Note: All scripts require the name of the filed copied to local/bin
preceding the script argument.
Example: Following installation instructions, all scripts are executed running red <argument>
.
resetapp
- Deletes node_modules, clears npm cache, removes package-lock, and reinstalls modules.resetapp c
<optional commit message>
- In addition to reseting app, package-lock is added with optional commit message. If no commit message is passed, a default message will be used.
Note: Run at your own risk 🤷♂️