Skip to main content

clisnips

clisnips is a command-line snippets manager.

xkcd/tar

It provides a graphical command-line user interface in which you can save, search and recall your commands.

Installation

clisnips requires python 3.11 or higher.

1. Install clisnips

The recommended way is to use pipx:

pipx install clisnips

2. Install shell key-bindings

# For bash
clisnips key-bindings bash
# For zsh
clisnips key-bindings zsh

Then:

  • Either open a new shell or source your shell rc file,
  • and type the Alt+s keyboard shortcut to open the snippets library.

Usage

Clisnips stores snippets in a local SQLite database, using an FTS5 table to enable full-text search. The search input accepts the whole FTS5 full-text query syntax.

Please have a look at the docs for getting started on writing your own snippets.

You may also read the quick-tour, a small TOML file containing some example snippets. You can import it in your snippets database by running:

clisnips import snippets/quick-tour.toml

In addition to its TUI, clisnips comes with a bunch of other subcommands to help you manage your snippets. Please run clisnips --help to read the CLI documentation.

Metadata

Release files for clisnips 0.6.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for clisnips 0.6.0
File Size Uploaded
clisnips-0.6.0.tar.gz 75.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for clisnips 0.6.0
File Interpreter ABI Platform
clisnips-0.6.0-py3-none-any.whl Python 3 none any Details

Total release size: 192.1 kB

Release files / clisnips-0.6.0.tar.gz

Download URL clisnips-0.6.0.tar.gz
Size 75.9 kB
Tags Source
SHA-256 checksum
How to use checksums
a80c4c9af6adaa83fe23043347101ebab1146dc09f7a5af169bfa925187f7aa5
BLAKE2b-256 checksum
How to use checksums
834b1257f2f92af7d018dced63861676eec12c6f9e234400ef2f6639425c4ef3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.7.1 CPython/3.10.12 Linux/6.2.0-1016-azure

Release files / clisnips-0.6.0-py3-none-any.whl

Download URL clisnips-0.6.0-py3-none-any.whl
Size 116.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d2ddcb7a594bf564c6bf2d4cc5c118dcacd49e681c4868e6e703a46cf771e119
BLAKE2b-256 checksum
How to use checksums
8c4a6e7120d855f9ca652eb09d7fcafb790d633fde81c1b872fe39789cc91058
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.7.1 CPython/3.10.12 Linux/6.2.0-1016-azure

Release history Release notifications | RSS feed

This release

0.6.0 This release

2 release files

0.5.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page