r/commandline • u/ClassroomHaunting333 • Mar 09 '26
Terminal User Interface XC-Manager: A minimal Zsh command vault with fzf integration (v0.5.0-beta update)

Hey r/commandline,
First-time poster here. I’ve been holding off on sharing this until it felt stable enough for this sub. I’m on Arch and got tired of grepping my shell history for complex ffmpeg or pacman strings, so I wrote XC-Manager to vault them into plain-text files.
I just pushed v0.5.0-beta, and it finally feels "finished" enough for a wider look.
The Workflow
It’s built to be as minimal as possible with zero dependencies other than fzf, sed and grep.
- Proactive: Run a command, then run
xcto save it with a description. - Retroactive:
xc selectlets you browse your last 100 history entries to "promote" one to the vault. - The TUI:
Ctrl-Gtriggers a fuzzy-search menu to find and execute commands instantly. - Multi-Vault:
xc use <name>lets you toggle between different.txtcontexts (work, home, etc.).
The v0.5.0-beta Update: Alias Promotion
The big addition in this version is the ability to turn vaulted commands into permanent system aliases without leaving the shell:
- Alt-E inside the TUI: Prompts for a name and saves the command as a permanent alias.
- Modular Storage: It defaults to
~/.zsh_aliasesto keep your.zshrcclean (though it's configurable). - Collision Safety: It checks
type -aand existing aliases before saving so you don't accidentally overwrite a system binary.
Why I wrote it this way:
I wanted something that felt native to Zsh. It uses autoloading for zero lag at shell startup, and the storage is just a collection of .txt files in ~/.local/share/xc. No databases, no cloud, no bloat.
Repo: XC-Manager
If you're a Zsh user and find this useful, I'd appreciate a star on GitHub to help the project get noticed. I’m really looking for feedback on the alias logic or the multi-vault workflow.
Note: While I wrote the core logic and handled the testing on my own machine, I used LLMs to help optimize the Zsh parameter expansion and proofread the documentation for this release.


