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
Release history Release notifications | RSS feed
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.2.tar.gz
(3.3 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file centrip_book-1.1.2.tar.gz.
File metadata
- Download URL: centrip_book-1.1.2.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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1bf479ebb70642a5829a67a90cfdc53af35c3a63fda4e05aa5f0736dd2a77ef1
|
|
| MD5 |
1f261ba620fb25f4dee97b484e3e7775
|
|
| BLAKE2b-256 |
e7c3d5148c73a0096c8e9605ac3cbed343bddf34e47801af36f1934a6ed06d4c
|
File details
Details for the file centrip_book-1.1.2-py3-none-any.whl.
File metadata
- Download URL: centrip_book-1.1.2-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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
127e7b94e25c7ad51371c5f75a47f94c3f56142012acac194b67aa5702726255
|
|
| MD5 |
29660698f9f122541486a7c07a27f994
|
|
| BLAKE2b-256 |
9931d8353efa7fcb067581f7b17bc6f96416b8f63d33c62238ebffa5117a8ed3
|