A very simple clone of my favorite command line utility that works well with Oh My Zsh. See this post for the original inspiration.
A
.okfile holds a bunch of handy one-liners, specific to the folder it is in. It can be viewed or executed with a simple command. It makes you smarter and more efficient.
- Clone this repository, or simply grab the
okfile and put it somewhere on your system. - Source the
okfile from your profile, e.g. I have. ~/okin my~/.zshrcfile.
- Create a
.okfile in any directory you choose. Fill it with any commands you use often or just want to remember. See the included.okfile in this repo for some ideas. - Run the
okfunction in that directory to get a list of your saved commands - Run
ok #to invoke any of those commands
Feel free to change the colors or the command prompt that is echoed back when running a command. See the first few lines in the ok file for easy customizations.