Skip to content

MattLimb/shortcut-alias

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

shortcut-alias

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.

Install Using Rust

Firstly, this repo will require that Rust is installed, along with Cargo.

To install Rust, please refer to the Rust docs: https://rustup.rs/

  1. Clone the Git repo.
$ git clone https://github.com/MattLimb/shortcut-alias.git
  1. Install Shortcut Alias using Cargo
$ cargo install --path .

Install with Python

It is reccommmended to install this project using pipx for easier dependancy management.

$ pipx run shortcut-alias

Alternatively, if you'd prefer to use pip:

$ pip install shortcut-alias

NOTE: This method currently is out of date. For now, it is recommended to use the cargo method above.

First Run

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>

shortcut files

Please view docs/shortcut_files.md for this.

CLI

Please view docs/cli.md for this.

Templating

Please view docs/templating.md for this.

Future Features

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages