| name | zeno-tweak |
| description | Add or remove zeno.zsh snippet shortcuts in $HOME/.config/zeno/config.yml. Use when: (1) User says 'zeno-tweak', (2) User wants to add or remove a zeno snippet shortcut. |
| user-invocable | true |
| argument-hint | <keyword> -> <command> OR del|remove <keyword> |
Zeno Tweak
Manage zeno.zsh snippet shortcuts in $HOME/.config/zeno/config.yml.
Parse argument
- Add mode:
<keyword> -> <snippet command> (e.g., gst -> git status)
- Remove mode:
del <keyword> or remove <keyword> (e.g., del gst)
Add mode
- Read
$HOME/.config/zeno/config.yml
- If keyword already exists, ask user whether to overwrite
- Safety check: Run
which <keyword> and type <keyword> in Bash. If either finds a real binary, builtin, alias, or function, warn user with what it conflicts (e.g., "cc is /usr/bin/cc (C compiler)") and ask for confirmation before proceeding
- Append new entry to
snippets: list:
- name: <short description derived from the command>
keyword: <keyword>
snippet: <command>
- Show the added entry
Remove mode
- Read
$HOME/.config/zeno/config.yml
- Find entry with matching keyword. If not found, report error
- Remove the entry (the
- name:, keyword:, and snippet: lines)
- Show what was removed
After modification
cd $HOME/repos/p/dotconfigetc
- Run
/commits push