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 | Code snippets manager for developers |
| 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 comprehensive directory of recommended free and open source software. Our carefully curated collection spans every major software category.This directory is part of our ongoing series of informative articles for Linux enthusiasts. It features hundreds of detailed reviews, along with open source alternatives to proprietary solutions from major corporations such as Google, Microsoft, Apple, Adobe, IBM, Cisco, Oracle, and Autodesk. You’ll also find interesting projects to try, hardware coverage, free programming books and tutorials, and much more. Discovered a useful open source Linux program that we haven’t covered yet? Let us know by completing this form. |


Please read our Comment Policy before commenting.