Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/asciimoo/ali
Smart shell alias replacement
https://github.com/asciimoo/ali
Last synced: 5 days ago
JSON representation
Smart shell alias replacement
- Host: GitHub
- URL: https://github.com/asciimoo/ali
- Owner: asciimoo
- License: gpl-3.0
- Created: 2016-01-15T16:46:09.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2017-11-27T11:47:08.000Z (almost 7 years ago)
- Last Synced: 2024-11-01T10:35:07.384Z (12 days ago)
- Language: Shell
- Homepage:
- Size: 313 KB
- Stars: 65
- Watchers: 3
- Forks: 8
- Open Issues: 0
-
Metadata Files:
- Readme: README.rst
- License: LICENSE
Awesome Lists containing this project
README
===================================
Ali - smart shell alias replacement
===================================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... image:: docs/images/demo.gif
:alt: Usage demo
:align: centerFeatures
========- Supports multiple and positional alias arguments
- Alias management
- Bash and Zsh compatibilityInstall
=======clone and source ``ali.sh``
Usage
=====.. code:: bash
$ ali [[ACTION] ACTION_ARGS..]
Actions
-------define
~~~~~~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``
register
~~~~~~~~Save and define alias
Same as ``define`` except it persists defined aliases.
Sourcing ``ali.sh`` automatically loads saved aliases.list
~~~~List persisted aliases
expand
~~~~~~Display the definition of a given alias
delete
~~~~~~Delete given alias
load
~~~~Load persisted aliases
clear
~~~~~Remove all stored aliases
Bugs
====Bugs or suggestions? Visit the `issue
tracker `__.License
=======GPLv3+