aka
aka
A handler for aliases that a little more feature-rich than Bash's built-in aliases. However, Bash's built-in aliases handle the environment and working directory very differently.
Use
Configuration belongs in ~/.config/aka.yml
.
Choose whichever method works for you:
$ aka --list
will list aliases in a format supported by bash.$ aka --link
will create soft links in the~/.config/aka/
directory.
Either way, aka
reads the configuration, looks at how it was invoked (busybox-style) and executes the appropriate alias. Additionally, aka
will print out a formatted explanation of what the alias is for. Printing out the alias when running it both helps avoid forgetting the true command and helps others that watch you program to understand what's happening.
Installation
Aka is written in Crystal. As such, it must be compiled before it can be ran. After installing the Crystal compiler, you should be able to do the following:
$ git clone git@github.com:Willamin/aka.git
$ cd aka
$ shards build --release
- the binary will be built at
bin/aka
, which should then be linked or copied to someplace in your PATH
Contributing
- Fork it ( https://github.com/Willamin/aka/fork )
- Create your feature branch (git checkout -b my-new-feature)
- Commit your changes (git commit -am 'Add some feature')
- Push to the branch (git push origin my-new-feature)
- Create a new Pull Request
Contributors
- Willamin Will Lewis - creator, maintainer
aka
- 0
- 0
- 0
- 0
- 1
- over 2 years ago
- January 17, 2019
MIT License
Fri, 22 Nov 2024 01:58:37 GMT