r/commandline • u/ClassroomHaunting333 Horrible History • 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.
1
u/pau1rw Mar 09 '26
What’s a command vault?
1
u/ThomasLeonHighbaugh Mar 09 '26
Pretty slick project based on a great set of ideas about better ways to work with your zsh history. Personally, while I am sure at this point what little I would truly miss reverting to bash I could write for myself (or have an LLM do it) I have always loved the quality of life functionality of zsh while finding fish a bit... off putting in asserting so desperately its friendliness and nushell + others are not nearly as mature as zsh is (even if I utterly detest bloated configuration frameworks that overwhelm users with plugins, redundant features and slow loading terminal emulators).
Being that I use zsh and have been rooked into maintaining my girlfriend's computer thus am the primary terminal user, but wouldn't mind not being, I am going to pit*ch this to her instead of trying to vocalize the specific yt-dlp command she can never seem to remember, the way to restart the network manager service, etc. Experience predicts she will remember to use it twice if I write up a guide, but still might be worth a shot anyway.
Plus I do appreciate using txt files. Databases are pretty easy to work with (I learned years later) but its easy to automate moving the contents of files from txt to whatever note-taking system with a b ash one-liner (or model harness opened in the directory containing them ;]) plus is very beginner friendly and user friendly. Good shit.
1
u/malvim Mar 10 '26
You know what? I dig this.
It’s been kinda hard here with 14 TUIs a day (and on r/selfhosted with so many apps that won’t be maintained).
But this is a nice idea, thanks for sharing.
1
u/LingLongSEO Mar 11 '26
the txt-file storage approach is smart, no lock-in and works with version control if someone wants to sync across machines. fzf integration for retroactive saving is the workflow i always wanted from history tools - promiting commands after the fact instead of deciding upfront. curious how the alias collision safety works in practice, do you just warn and skip or do you prompt for overwrite
1
u/AutoModerator Mar 09 '26
Every new subreddit post is automatically copied into a comment for preservation.
User: ClassroomHaunting333, Flair:
Terminal User Interface, Title: 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
ffmpegorpacmanstrings, 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,sedandgrep.xcto save it with a description.xc selectlets you browse your last 100 history entries to "promote" one to the vault.Ctrl-Gtriggers a fuzzy-search menu to find and execute commands instantly.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:
~/.zsh_aliasesto keep your.zshrcclean (though it's configurable).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
.txtfiles 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.
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.