| Crates.io | aliasmgr |
| lib.rs | aliasmgr |
| version | 1.0.0 |
| created_at | 2025-11-23 23:19:49.515605+00 |
| updated_at | 2025-11-29 17:27:45.548055+00 |
| description | A clean and simple CLI alias manager |
| homepage | |
| repository | https://github.com/Faria22/aliasmgr |
| max_upload_size | |
| id | 1947097 |
| size | 183,858 |
CLI tool to manage shell aliases from a single, versionable TOML file, written in Rust 🦀. It keeps aliases grouped, toggled, and synchronized with your shell so you can avoid hand-editing scattered alias definitions.
~/.config/aliasmgr/aliases.toml (or a custom path) with optional groups.aliasmgr sync.alias -g) support.cargo install aliasmgr
brew install faria22/homebrew-tap/aliasmgr
eval "$(aliasmgr init bash)"eval "$(aliasmgr init zsh)"aliasmgr init zsh --config ~/.aliases.toml
ALIASMGR_CONFIG_PATH so subsequent commands use that file.ALIASMGR_SHELL and defines a wrapper function that applies alias deltas returned on file descriptor 3.~/.config/aliasmgr/aliases.toml (XDG config home).py = "python3" # enabled by default
js = { command = "node", enabled = false } # disabled
x = { command = "xargs", global = true } # global alias (zsh only)
[git] # group name
ga = "git add"
gc = { command = "git commit", enabled = true }
[misc]
enabled = false # disable entire group
ll = { command = "ls -la", enabled = true }
aliasmgr add alias <name> <command> [--group <group>] [--disabled] [--global]aliasmgr add group <name> [--disabled]aliasmgr move <name> [group]aliasmgr list [<pattern>] [--group [group] [--enabled] [--disabled] [--global]aliasmgr remove alias <name>aliasmgr remove group <name> [--reassign]aliasmgr remove allaliasmgr rename alias <old_name> <new_name>aliasmgr rename group <old_name> <new_name>aliasmgr edit <name> <new_command> [--group [group]] [--toggle_enabled] [--toggle_global]aliasmgr syncaliasmgr sort aliases [--group [group]]aliasmgr sort groupsaliasmgr enable alias <name>aliasmgr enable group <name>aliasmgr disable alias <name>aliasmgr disable group <name>For more details, use the -h or --help flags.
Notes:
=.--global) only work on zsh; they are skipped on other shells.[!WARNING]
aliasmgr sync(and theinitsnippet that runs it) starts by executingunalias -a, which clears all aliases in the current shell.
eval "$(aliasmgr init {shell})" in your rc file. Re-running sync after sourcing your rc file will remove any aliases not managed by aliasmgr.aliasmgr sync again after manually editing the config file without using aliasmgr commands, and after changes made in one terminal when you have multiple shells open.sync and re-source your rc file whenever you update aliases.cargo testcargo fmtcargo clippy