A command-line snippet manager written in Go for storing, searching, and executing reusable shell commands.
Sman is a command-line snippet manager written in Go that allows developers to store, organize, and quickly execute frequently used shell commands. It solves the problem of forgetting complex command syntax by providing a searchable repository of snippets with placeholder support for dynamic values. The tool uses YAML files for snippet storage and offers features like fuzzy search and machine-readable output for scripting.
Developers and system administrators who work extensively in the terminal and need to manage reusable shell commands, scripts, or complex command sequences efficiently.
Developers choose Sman for its simplicity, YAML-based configuration, and powerful search capabilities. Unlike generic note-taking apps or plain text files, it's specifically designed for command snippets with features like placeholders, execution confirmation, and integration with existing shell workflows.
:bug: Command-line snippet manager
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.
Snippets are stored in plain YAML files, making them easy to edit, version control, and share, as demonstrated in the README examples.
Commands can include placeholders like <<port>> that prompt for user input, enabling reusable templates without hardcoding values for flexibility.
It offers fuzzy search by name, command, or description, allowing quick retrieval of snippets without exact matches, boosting productivity.
The --porcelain flag produces tab-separated output for easy integration into shell scripts and automation, as shown in the usage examples.
Only a Vim plugin is provided, leaving users of popular editors like VS Code or Emacs without native support, which limits accessibility.
Initial setup requires configuring environment variables, sourcing rc files, and managing snippet directories manually, which can be tedious.
Snippets are stored locally in files with no cloud sync or sharing features, making team-wide usage cumbersome without external tools.