snippethold is a fast, lightweight, terminal-based snippet manager written in C. It allows you to store, list, retrieve, and delete text snippets directly from your CLI, storing them safely in ~/.config/.snippethold.
- Isolated Storage: Automatically creates and uses a dedicated directory (~/.config/.snippethold).
- Simple Interface: Easy-to-remember flags for common snippet management operations.
Prerequisites:
- GCC or Clang
- Make
- LibSodium
Building and Installing:
- Install libsodium for encryption with your packagem manager of choice:
sudo pacman -S libsodium - Clone the repository:
git clone https://github.com/TechCore3/snippethold.git - Navigate to directory:
cd snippethold - Build and install: sudo make install
This builds the binary and places it in /usr/local/bin.
To uninstall:
sudo make uninstall
To clean build artifacts:
make clean
snippethold [file] [contents]
Options: -s Store snippet contents into a file -ss Store snippet contents into encrypted file -S Show contents of a stored snippet -Ss Show contents of an encrypted snippet -l List all saved snippet files -r Remove a stored snippet -h, --help Display usage information
- Save a snippet:
snippethold <-s|-ss> quicknote "Remember to run updates on server" - List all saved snippets:
snippethold -l - Show a snippet's contents:
snippethold <-S|-Ss> quicknote - Delete a snippet:
snippethold -r quicknote
This project is licensed under the GNU General Public License v3.0 - see the LICENSE file for details