Define custom alias for cli program which has no alias support
This app helps you to define a custom alias for a command-line utility that has no alias support.
Using this app you can define some aliases (including shell aliases) and use them just like they were defined out of the box.
Therefore, you do not need to pollute a global namespace with shell aliases (using .zsh/.bashrc/.profile etc).
Technically is just a thin wrapper(proxy) to conditionally run target program.
This app is independent of
The list of aliases can be shown by using —aliases parameter.
You can add an additional configuration file ‘override.toml’ to the same directory.
This helps you to redefine or introduce new aliases which depend on the environment.
Motivation: some aliases may be specific to the working environment and you do not want to expose them by sharing using a public repository.
There are two options:
Different operating systems place binary files in different directories.
To handle this, it is possible to reference target executable using environment variables (example: executable=”${HOME}/tools/bin/app”)
This helps you to use the same config file across different operating systems.
When you try to use shell script directly as a target executable you can face the problem ‘%1 is not a valid win32 application’.
To deal with this issue you can ann run_as_shell=true parameter to the config (or to the override file if you prefer), this will allows you to run the script using the current shell.
Sample config can be found here.
A little bit more realistic examples: