Command Keeper is designed to help you store, organize, and deploy your most-used terminal commands, SQL queries, rand shell scripts.
Here are essential tips for getting the most out of Command Keeper:
Leverage Dynamic and Custom Placeholders
Instead of hardcoding paths, timestamps, or repetitive values into your snippets, use Command Keeper’s built-in variable placeholder feature. When you copy or insert a snippet, the app dynamically resolves these tokens at runtime (note that placeholders are case-sensitive):
Directory Paths: Use the {_home_}, {_docs_}, {_down_}, {_apps_}, and {_data_} placeholders to make snippets automatically recognize the most common (and important) directories.
Live Clipboard Injection: Use the {_clip_} placeholder to inject whatever text is currently on your clipboard directly into a command, which is ideal for wrapping a copied URL, file path, or commit hash into a curl, grep, or git command without manual editing.
Timestamps & Identifiers: Use the {_date_} (YYYY-MM-DD), {_time_} (HH:MM:SS), {_stamp_} (UNIX epoch), or {_uuid_} placeholders to help generate unique log filenames or backup archives on the fly.
System Diagnostics: Pull live context using the {_ip_}, {_osver_}, {_cpu_}, {_host_}, {_uptime_}, and {_load_} placeholders.
Custom Variables ({_custom1_} to {_custom4_}): Under Settings > Set Custom Placeholders..., you can store up to four reusable values (up to 70 characters each), such as staging server hostnames (dingle.berry.com) or project directories.
Watch Out for Line Feeds in Multi-Line Snippets
How you format and add commands in the snippet editor directly impacts how they behave when sent to your terminal, especially when Always paste Snippet into Terminal mode (⌘M) is enabled.
Line Feeds Act as Pressing Return: Command Keeper preserves newline characters (line feeds) entered into the Command Snippet field. When the snippet is pasted into Terminal, iTerm, Warp, Ghostty, or Alacritty, every line break is interpreted by the shell as pressing the Return/Enter key.
The Risk with Sensitive or Destructive Commands: Even if you intend to review a command before running it, any trailing newline at the end of a snippet, or line breaks between chained commands, will immediately execute upon pasting. For commands involving rm -rf, sudo, DROP TABLE, or production deployments, always strip trailing line feeds or toggle back to Copy to Clipboard mode (⌘M) before triggering the snippet.
Additional Workflow Tips to Boost Productivity
Pin Your Top 5 Commands for Instant Deployment
You can pin up to 5 Favorite snippets using the Pin this Snippet toggle in the Add/Edit window. Pinned snippets always float to the top of your list and can be launched immediately into your active terminal from anywhere in the app using ⌥1 through ⌥5.
Use Boolean Operators in Full-Text Search
Command Keeper indexes your commands, descriptions, categories, notes, and tags. Instead of scrolling through pages, type boolean queries directly into the search bar. For example, git NOT rebase or docker OR podman.
Protect Your Library with Automated Backups and Safe Restores
Enable Auto-Backups in the settings menu so Command Keeper automatically creates timestamped snapshots (retaining the 5 most recent backups) whenever you quit the app. If you ever need to roll back changes via Restore Snippet Database Backups..., Command Keeper automatically saves a pre-restore safety copy of your current database before overwriting anything.
