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>orremove <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>andtype <keyword>in Bash. If either finds a real binary, builtin, alias, or function, warn user with what it conflicts (e.g., "ccis/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:, andsnippet:lines) - Show what was removed
After modification
cd $HOME/repos/p/dotconfigetc- Run
/commits push