aliasy is a small zsh helper for managing aliases from your shell session while keeping alias definitions persistent on disk.
- Lists the aliases currently available in your zsh session.
- Adds new aliases and saves them to a persistent store.
- Removes and renames saved aliases.
- Reloads aliases from the store when you start a new shell.
By default, aliasy stores persistent aliases in ~/.aliasy_store.zsh.
- Clone this repo somewhere on your machine.
- Source
aliasy.zshfrom your~/.zshrc:
source "/Users/adam/Desktop/Programming/shell/aliasy/aliasy.zsh"- Reload your shell:
source ~/.zshrcYou can also install it through Homebrew from this repository as a tap:
brew tap adamzafir/aliasy https://github.com/adamzafir/aliasy
brew install --HEAD adamzafir/aliasy/aliasyThen source the installed file from your ~/.zshrc:
source "$(brew --prefix)/share/aliasy/aliasy.zsh"aliasy help
aliasy list
aliasy add gs 'git status'
aliasy remove gs
aliasy rename gs gst
aliasy reloadaliasy add ll 'ls -lah'
aliasy listThat adds ll to the current shell and writes it to the persistent alias store so it comes back in future sessions.