The biggest problem with the standard shell alias system is its best feature: simplicity. In short, an alias is nothing else, just a substitution of a shell command prefix. Ali tries to stay as simple as the built-in alias command, while providing way more functionality and flexibility.
- Supports multiple and positional alias arguments
- Alias management
- Bash and Zsh compatibility
clone and source ali.sh
$ ali [[ACTION] ACTION_ARGS..]Define alias
Standard alias definition: ali define myls ls -l
Multiple arguments and argument reorder: ali define lwc ls -l \$2 \| wc \$1. Example usage: lwc -l ../
Pipes: ali define logthis \$@ \| tee -a mylog.log. Example usage: logthis any_command --with --args
Save and define alias
Same as define except it persists defined aliases.
Sourcing ali.sh automatically loads saved aliases.
List persisted aliases
Display the definition of a given alias
Delete given alias
Load persisted aliases
Remove all stored aliases
Bugs or suggestions? Visit the issue tracker.
GPLv3+
