mal - a small zsh function to easily manage aliases.
$ vim ~/.zshrc
$ source ~/.zshrc
To edit your aliases.
mal <alias_name> <command>
mal -c
mal -r
mal -d
mal -l
mal -e
mal -rn <old_alias_name> <new_alias_name>
mal -cc <alias_name> <new_command>
mal -dn <alias_name>
- zsh
- fzf
mal depends on zsh (it's a zsh function), but you could probably easily port it to bash or other shells.
It also depends on fzf, which is a fuzzy finder over lists, which enables the easy management of the aliases.
To install copy the mal function into your zsh config (I have mine in a folder containing all other zsh functions).
Make sure to source the function in your config.
Then create a file called .aliases.
Make save an envoirement variable $ALIASES_FILE, which is a path to the .aliases file.
Restart the terminal and try it out!
If you need inspiration to how I have set it up, checkout my dotfiles: https://github.com/MLFlexer/.dotfiles