Skip to main content

A command bookmarking tool for your terminal.

Project description

📘 Centrip Book

A simple tool to save, organize, and run your favorite terminal commands.


💡 Usage

Command Description
book <alias|index> [args...] Run a saved command (supports {1}, {2}, {all} if present)
book add "<command>" [alias] Add or update a command (optional alias)
book find <keyword> Search commands by keyword
book rm <alias|index> Remove a saved command (auto-reindexes)

🧠 Examples

# Add and name commands
book add "sudo nginx -t && sudo systemctl reload nginx" nginx
book add "cd /var/www/live" live
book add "git status" gs

# List saved commands
book

# Run by alias or index
book nginx
book 2

# Search and remove
book find nginx
book rm nginx

⚙️ Arguments (optional)

Some commands can take arguments using placeholders:

Placeholder Meaning
{1} First argument
{2} Second argument
{all} All arguments joined by spaces
book add "echo Hello {1}" hi
book hi world
# → echo Hello world

📂 Storage Format

Commands are stored in ~/.book in this format:

nginx → sudo nginx -t && sudo systemctl reload nginx
live → cd /var/www/live
? → git status

? indicates that no alias was defined but the bookmark can still be referenced by it's index


🚀 Install

pip install centrip-book

After installation, use the book command directly in your terminal.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

centrip_book-1.1.12.tar.gz (4.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

centrip_book-1.1.12-py3-none-any.whl (4.4 kB view details)

Uploaded Python 3

File details

Details for the file centrip_book-1.1.12.tar.gz.

File metadata

  • Download URL: centrip_book-1.1.12.tar.gz
  • Upload date:
  • Size: 4.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.2

File hashes

Hashes for centrip_book-1.1.12.tar.gz
Algorithm Hash digest
SHA256 4cf5639428ff9b677064450d9bef411a99c8e99e1df0a64f115873c9f04b6e36
MD5 a7f9421a562da553b21a3dd672027500
BLAKE2b-256 a4d94e824f5efdf09513bfe1d9d6cc435c487af32e187d981aa95d1f7c5a1912

See more details on using hashes here.

File details

Details for the file centrip_book-1.1.12-py3-none-any.whl.

File metadata

  • Download URL: centrip_book-1.1.12-py3-none-any.whl
  • Upload date:
  • Size: 4.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.2

File hashes

Hashes for centrip_book-1.1.12-py3-none-any.whl
Algorithm Hash digest
SHA256 dccd0e5eecabb5cc9b931329f5cb86e0920b0098f9242916415f72da59b73a35
MD5 d61ad29da4ab962449c600e2d726d940
BLAKE2b-256 d5a21a8f5a6a0d1b29d75e5dd61e6fc9f8f0ff14a35eb48e9b808e0336466a0e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page