When you live in the terminal as much as I do, sometimes you find yourself typing the same long things over and over again. "I gotta open this directory again buried deep in ~/Documents/Research/Programming/Cpp/FailedProjects/NumbersRoyale/". Instead of navigating there folder by folder, or typing the full path in every time, now you can just type restore numbers-royale and BAM! You're there, navigated to your project directory, locked in and ready to go.
With store, you can save any string, directory, or file path, and restore it later with ease. Write down all your juicy secrets and then store secrets ~/Documents/Important/DontOpen/StayAway/MySuperSecretFile.txt deep and hidden away for safekeeping. When life happens, things get ugly, Emily said what?! to Edward, and now Steven's getting under the press and Evan's money is on the line, simply restore secrets vim and write that down, WRITE THAT DOWN!
TL;DR; A simple, lightweight key-value store for your terminal. Save strings, directories, or files and restore them later.
Run the install script to automatically copy store.sh to ~/.store/ and update your shell configuration:
sh install.shSource the script in your shell (e.g., .bashrc or .zshrc):
source /path/to/store.shstore greet "hello world"
store docs ~/Documents
store readme ./README.mdstoredunstore greet# Print the value
restore greet
# Change directory (if value is a directory)
restore docs
# Use with a command
restore readme vim # Opens the file in vim