Snapshell is a simple and powerful command-line tool for managing and running command shortcuts locally or globally. With Snapshell, you can easily automate tasks by saving multiple commands as a single shortcut and running them with ease.
- Add Shortcuts: Save multiple commands as a single shortcut.
- List Shortcuts: View all saved shortcuts (both global and local).
- Run Shortcuts: Execute multiple commands associated with a shortcut.
- Remove Shortcuts: Delete saved shortcuts.
You can install Snapshell globally to use it from anywhere in your terminal:
npm install -g snapshell
ss add
ss add
Is this a global shortcut or local to this directory? (Global/Local)
Enter the shortcut name: deploy
How many commands do you want to add? 2
Enter command #1: npm install
Enter command #2: npm run build
ss list
Global Shortcuts:
build -> npm install && npm run build
Local Shortcuts:
/path/to/project -> test -> npm run test
ss [shortcut-name]
ss build
ss remove
ss remove
Is this a global shortcut or local to this directory? (Global/Local)
Enter the shortcut name: build
Are you sure? (Y/N)