Skip to main content

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

  1. 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 ld to run the command dir.
  • 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

win_alias-1.0.4.tar.gz (2.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

win_alias-1.0.4-py3-none-any.whl (3.7 kB view details)

Uploaded Python 3

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

Hashes for win_alias-1.0.4.tar.gz
Algorithm Hash digest
SHA256 bc0b7086563b3e78a84da5a47a4a3cc5c69bb4bda1d21e59fc7b701d76467ca5
MD5 32efdbe60082dbc89bb69a26a46007b9
BLAKE2b-256 f73c9820e0f1212ba43e0beffdbf462a689b0cf99a62a27b5ca75e25d0a36a9f

See more details on using hashes here.

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

Hashes for win_alias-1.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 acfec105bf0fb6d5d1f4b28067874aed8904c29c6225b52f11bceae7c96f3d68
MD5 a5c748d651574815dc464f9c05b290b4
BLAKE2b-256 498a93320798855f31a186130975042bada584a1479e867e2d0b567af53cee23

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page