A simple CLI tool to create Windows aliases.
Project description
Win-Alias
Win-Alias is a simple CLI tool to create and manage Windows command aliases.
If you are tired of typing long commands or if you want to create custom command shortcuts, Win-Alias is for you.
If you've used Linux before, you might be familiar with the alias command. Win-Alias brings this functionality to Windows.
Features
- Create custom command aliases
- List all created aliases
- Display usage instructions
Installation
- Install from pip
pip install win-alias
Usage
Create an Alias
To create a new alias, run:
win_alias create-alias
>> Enter the alias name: ld
>> Enter the command:
dir
EOF
- We can now use the alias
ldto run the commanddir. - EOF is used to indicate the end of the command. It is not part of the command.
By default, the alias is saved in the user's home directory in a subdirectory called aliases.
Each alias is saved in a separate batch file with the alias name as the filename.
The very first time you create an alias, the aliases directory will need to be added to the system path. This is not needed for subsequent aliases.
The aliases will take effect after the system path is updated and the command prompt is restarted.
List All Aliases
To list all created aliases, run:
win_alias list-aliases
Display Usage Instructions
To display usage instructions, run:
win_alias --help Or
win_alias guide
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file win_alias-1.0.4.tar.gz.
File metadata
- Download URL: win_alias-1.0.4.tar.gz
- Upload date:
- Size: 2.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bc0b7086563b3e78a84da5a47a4a3cc5c69bb4bda1d21e59fc7b701d76467ca5
|
|
| MD5 |
32efdbe60082dbc89bb69a26a46007b9
|
|
| BLAKE2b-256 |
f73c9820e0f1212ba43e0beffdbf462a689b0cf99a62a27b5ca75e25d0a36a9f
|
File details
Details for the file win_alias-1.0.4-py3-none-any.whl.
File metadata
- Download URL: win_alias-1.0.4-py3-none-any.whl
- Upload date:
- Size: 3.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
acfec105bf0fb6d5d1f4b28067874aed8904c29c6225b52f11bceae7c96f3d68
|
|
| MD5 |
a5c748d651574815dc464f9c05b290b4
|
|
| BLAKE2b-256 |
498a93320798855f31a186130975042bada584a1479e867e2d0b567af53cee23
|