als-manager-0.1.0 is not a library.
📟 Alias Manager
The solution to a problem you don't have -- a TUI for managing your shell aliases. View, search, and audit all your Zsh, Bash, and Fish aliases in one place.
Built with Rust and Ratatui. Supports macOS and Linux.
✨ Features
- 🚀 Multi-Shell Discovery: Automatically parses
.zshrc,.bashrc,.profile, andconfig.fish. - 🌿 Git Integration: Full support for
~/.gitconfigaliases. - 🔍 Global Search: Instant filtering across alias names, expanded commands, tags, or source files.
- 🏥 Health Checks: Automatically detects "broken" aliases where the underlying command is missing from your
$PATH. - 🔗 Shadow Chains: Identifies when aliases are overridden across multiple configuration files.
- 📊 Usage Analytics: Correlates shell history to show total usage counts and "last used" timestamps.
- 🏷️ Categorization: Supports
# @tagcomments for custom organization. - 📋 Dual Yanking: Copy the alias name (
y) or the fully resolved expansion (Y). - 📝 Instant Edit: Jump directly to the source file and line of any alias using your
$EDITOR.
🎮 Controls
| Key | Action |
|---|---|
Tab |
Switch focus between Filter and Aliases |
j / k |
Navigate the alias list |
s |
Toggle Sort (Name → Usage → Health) |
d |
Toggle Details pane |
h |
Toggle source filenames |
y |
Yank alias name |
Y |
Yank expanded command |
e |
Edit source file at line |
/ |
Focus search filter |
c |
Clear search filter |
? |
Toggle help legend |
q |
Quit |
🛠️ Requirements
None, really. You need a nerd font for source file icons, though.
📦 Installation
Cargo (Rust Users)
Homebrew
Nix (Flakes)
Arch Linux (AUR)
You can install alias-manager from the AUR using your favorite helper:
Manual (From Source)
🚀 Usage
Interactive Mode:
CLI Dump (Non-interactive):
🤝 Contributing
Contributions are welcome!
If you're looking to add a new source (e.g., a new shell or config format):
- Create a parser in
src/parser/your_source.rs. - Register it in
src/parser/mod.rs. - Call it in the
get_all_aliases()discovery loop.
📄 License
MIT