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 <n|alias> 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

🚀 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.1.tar.gz (3.3 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.1-py3-none-any.whl (3.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: centrip_book-1.1.1.tar.gz
  • Upload date:
  • Size: 3.3 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.1.tar.gz
Algorithm Hash digest
SHA256 29591bd6efd984864c877f796061fa62174f005acf4f3687d1625a7a161cf61a
MD5 d5bc45d93aa17cac8b2b9986078368e2
BLAKE2b-256 7c34da67d16d4936592a4e08edc8e41309f147652f2d1ddcdae45240e9642421

See more details on using hashes here.

File details

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

File metadata

  • Download URL: centrip_book-1.1.1-py3-none-any.whl
  • Upload date:
  • Size: 3.7 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 df944188b55f26496f429aafebd73b78e3ff0c1a246fa1fa9a0a155ee762951b
MD5 e41e7d4303f67097380ceb4bab7006e5
BLAKE2b-256 333121aebd0b3ea0d9f31feaf934caffb8012c01d68176998348083a9b7f3bf8

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