This is a personal project for configurable multiple command aliases.
Disclaimer - This is a personal project, intended to learn and progress my programming knowlege. If you do find this project useful, and want to contribute, please feel free to open PRs or issues, and I'll do my best to process them as quickly as I can.
Firstly, this repo will require that Rust is installed, along with Cargo.
To install Rust, please refer to the Rust docs: https://rustup.rs/
- Clone the Git repo.
$ git clone https://github.com/MattLimb/shortcut-alias.git- Install Shortcut Alias using Cargo
$ cargo install --path .It is reccommmended to install this project using pipx for easier dependancy management.
$ pipx run shortcut-aliasAlternatively, if you'd prefer to use pip:
$ pip install shortcut-aliasNOTE: This method currently is out of date. For now, it is recommended to use the cargo method above.
On the first run, shortcut-alias will generate the needed file structure on first run, or on a new config directory.
By default the folder structure will be the following:
On Windows:
| Name | Filepath |
|---|---|
| shortcut folder | C:\Users\<username>\.shortcut |
On Linux:
| Name | Filepath |
|---|---|
| shortcut folder | ~\.shortcut |
To change this, set the environment variable "SHORTCUT_CONFIG".
Windows:
> $Env:SA_CONFIG=<filepath>Linux:
export SA_COFNIG=<filepath>Please view docs/shortcut_files.md for this.
Please view docs/cli.md for this.
Please view docs/templating.md for this.
Please note: This section is for me to outline some future plans I have for this project. I cannot guarantee these features will materialize.
- Unit Tests
- Simple Command Conditionals
- Allows for commands to run if conditions are met. Such as a flag is specified or a command fails.
- Templated Variables
- Default values for environment variables
- Built-in shortcut file linter