A simple CLI tool for managing shell aliases, written in OCaml.
- Create, list, and delete shell aliases
- Aliases are automatically available after adding or deleting (no manual sourcing)
- Aliases persist across shell sessions
- Works with both bash and zsh
- OCaml with opam
- dune build system
- yojson library (
opam install yojson)
./install.shThe installer will:
- Build the project
- Install the binary to
~/.local/bin/ - Ask to add shell integration to your
.zshrcor.bashrc
After installation, restart your shell or run:
source ~/.zshrc # or ~/.bashrc# Add an alias
al add ll 'ls -la'
al add gs 'git status'
al add gp 'git push'
# List all aliases
al list
# Delete an alias
al delete ll
# Show help
al help- Aliases are stored in
~/.config/alias-manager/aliases.json - A shell script is generated at
~/.config/alias-manager/aliases.sh - The
alshell function wraps the binary and auto-sources aliases after changes
MIT