Intro
A year or so ago I've started being tired of navigating to some directories over and over again. Same with running scripts for booting my project.
At that time I've been doing some custom scripts + aliases to make my workflow a bit better, but I didn't really like that approach for some reason. I thought having CLI tool for creating and managing those scripts would be much better (more intuitive) and so I have quickly written a prototype.
Around a week ago I thought it actually could be useful for others + maybe someone would want to contribute and make it more useful and less buggy
TLTR:
Shortcut - record, save & execute your most used scripts in the terminal
Example usecase:
sc fe be
- boots your fe and be project into two separate terminal tabs
sc my_dir
- Instead of typing N cd, move straight to the directory
SUPPORTS: iTerm, Terminal
Install with homebrew:
brew tap devs-on-remote/shortcut
brew install shortcut
Basically the flow looks like this:
sc --record
- record the things you would do in terminal and save itsc <command_name>
- executes the saved script in the new tab
In the case above it opened a new tab and immediately executed the script moving you to the Desktop
I made it so it opens by default in the new tab, as I usually use it to boot my projects.
There are other commands that I've added like --list
, --edit
, --delete
so you can quickly check the saved scripts and edit them in vim as well.
Let me know what you think, maybe you have some ideas for improvements?
Top comments (2)
Here is the link to repo: link