snip is a simple snippet manager for bash, which allows the user to save useful and important bash code snippets directly from the bash prompt.
It is especially useful to save long one-liners, or rarely used commands which we tend to forget. snip is written in pure bash, but uses FZF to allow the user to perform searches on the snippet database.
This is free and open source software.
Key Features
- Save and recall snippets directly from the bash prompt with keybindings.
- One line setup, won’t slow down your .bashrc loading.
- Uses a simple text file for the database.
- CLI commands to edit the database manually.
- CLI commands to list the contents of the database in a formatted way.
- Supports syncing of multiple hosts via a git repo.
- Automatically saves a time stamp with the command.
- Written in pure shell. To install just copy one file to /usr/local/bin or any other location in your PATH.
- Displays full usage with a simple command (snip help).
Website: github.com/marcopaganini/snip
Support:
Developer: Marco Paganini
License: MIT License

snip is written in Bash. Learn Bash with our recommended free books and free tutorials.
Related Software
| Snippet Tools | |
|---|---|
| pet | Simple command-line snippet manager |
| YASnippet | Template system for Emacs |
| LuaSnip | Highly configurable completion engine for Neovim editing workflows |
| nap | Code snippets in your terminal |
| Gisto | Code snippet manager |
| massCode | Local-first developer workspace |
| The Way | Code snippets manager written in Rust |
| SnipKit | Fast command-line tool for saving and recalling reusable commands |
| ScriptHaus | Organize scripts and bash one-liners |
| snip | Simple snippet manager for bash |
| Snip | Simple snippet manager for your predefined Ultisnips Snippet Directory |
| SafeScript | Securely store and organise reusable shell commands and scripts |
| boom | Manages your text snippets on the command line |
Read our verdict in the software roundup.
Explore our carefully curated directory of recommended free and open source software, covering every major software category.The directory forms part of our extensive collection of articles for Linux enthusiasts. It includes hundreds of detailed reviews, together with free and open source alternatives to proprietary software from companies such as Google, Microsoft, Apple, Adobe, IBM, Cisco, Oracle, and Autodesk. LinuxLinks also covers interesting projects worth exploring, Linux-compatible hardware, free programming books and tutorials, and much more. Know a useful free and open source Linux application that we haven’t covered? Tell us about it using our submission form. |


Please read our Comment Policy before commenting.