PyAlias is a Command Line Interface (CLI) program built with Typer, designed for easy management of aliases in Windows.
- Download the repository
- Install dependencies with:
pip install -r requirements.txt
- Install the program with:
python pyAlias.py install
- Run the program with:
python pyAlias.py uninstall
pyalias --help
: Show the program helppyalias new <alias> <command>
: Create a new aliaspyalias list
: List all aliasespyalias delete <alias>
: Delete an aliaspyalias update <alias> <command>
: Update an aliaspyalias read <alias>
: Read an aliaspyalias paths
: Get the program pathspyalias install
: Install the programpyalias export
: Export all aliases to a .TXT filepyalias import <file>
: Import aliases from a .TXT file
pyalias new ls dir /b
: Create a new alias with the name "ls" and the command "dir /b"pyalias update ls dir /b /s
: Update the alias "ls" with the command "dir /b /s"pyalias delete ls
: Delete the alias "ls"
Creating an alias in PyAlias involves two main steps:
- A .TXT file is created in the
{Program_path}\pyAlias\
folder with the alias name and the assigned command. - A copy of
alias_launcher.exe
is made, renamed to the alias, and is responsible for executing the command.
Example:
- If you create an alias named "ls" with the command "dir", running "ls" in the console executes the
ls.exe
, which reads the command from thels.txt
file and executes it.
Using a C executable for alias_launcher
removes Python from the alias execution process, leading to significantly faster alias invocation.