https://github.com/muleyuck/linippet
🍾 One-liner command generator from snippet
https://github.com/muleyuck/linippet
cli cobra go golang tcell tview
Last synced: about 2 months ago
JSON representation
🍾 One-liner command generator from snippet
- Host: GitHub
- URL: https://github.com/muleyuck/linippet
- Owner: muleyuck
- License: mit
- Created: 2024-07-28T04:24:19.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2026-02-22T04:12:55.000Z (3 months ago)
- Last Synced: 2026-02-22T11:20:13.762Z (3 months ago)
- Topics: cli, cobra, go, golang, tcell, tview
- Language: Go
- Homepage:
- Size: 108 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://github.com/muleyuck/linippet/actions/workflows/unit-test.yml)

[](https://github.com/muleyuck/linippet/releases/latest)
[](https://godoc.org/github.com/muleyuck/linippet)
[](https://github.com/muleyuck/linippet/stargazers)
# 🍾 linippet
Never forget your one-liner commands again.
**linippet** is a TUI snippet manager for bash/zsh — store, fuzzy-search, and execute shell commands with dynamic arguments (`${{arg_name}}`).

## Installation
### 1. Install binary
Shell script (Linux/macOS)
```sh
curl -sSfL https://raw.githubusercontent.com/muleyuck/linippet/main/install.sh | sh
```
Go
```sh
go install github.com/muleyuck/linippet@latest
```
Homebrew
```sh
brew install muleyuck/tap/linippet
```
Or, download binary from [Releases](https://github.com/muleyuck/linippet/releases)
### 2. Setup your shell
zsh
```sh
eval "$(linippet init zsh)"
```
bash
```sh
eval "$(linippet init bash)"
```
## Features
- **Fuzzy search** — quickly find snippets from your list
- **Dynamic arguments** — use `${{arg_name}}` placeholders, filled interactively at run time
- **Default values** — use `${{arg_name:default}}` to pre-fill arguments
- **Keybind trigger** — invoke linippet from anywhere in your shell with a single key chord
- **Vim / Emacs navigation** — familiar key bindings in the TUI
## Get Started
### Quick Start
1. Register a snippet:
```sh
linippet create
```
2. Search and execute:
```sh
lip
```
To output the selected snippet to stdout without executing it:
```sh
linippet
```
### Triggered by a bind key
Set `LINIPPET_TRIGGER_BIND_KEY` to invoke linippet mid-command. For example:
```sh
export LINIPPET_TRIGGER_BIND_KEY="^o"
```
Pressing `Ctrl+o` will open the TUI and paste the selected snippet into your current readline.
### CRUD snippets
```sh
linippet [create|edit|remove]
```
## Inspired by
linippet inspired by [Warp workflow](https://docs.warp.dev/features/warp-drive/workflows)
## License
[MIT](https://github.com/muleyuck/linippet/blob/main/LICENSE)