Skip to main content

Manage command aliases in Windows

Project description

alias Version Test status

Manage command aliases in Windows.

Installation

> pip install alias-windows

By default aliases are stored in %USERPROFILE%\Documents\Scripts\Aliases. You can set the directory to store aliases by changing the environment variable called %ALIASES_DIR%.

Managing aliases

Get the list of available aliases:

> alias
apktool, gsh, gst
> alias -v
apktool = %SOFTWARE%\apktool\apktool.bat %*
gsh = git show $*
gst = git status --short --branch %*

Add an alias:

> alias test=dir \b %*
Added test

Show the alias:

> alias g
gsh, gst
> alias test
dir \b %*

Search for a text in alias commands:

> alias -s apk
baksmali, smali
> alias -s apk -v
baksmali = %SOFTWARE%\apktool\apktool.bat d %*
smali = %SOFTWARE%\apktool\apktool.bat b %*

Delete the alias:

> alias -d test
Deleted test

Environment variables

alias changes two variables:

  1. %ALIASES_DIR% Directory where aliases are stored.
  2. %PATH% Adds %ALIASES_DIR% to %PATH%.

License

This project is licensed under the MIT License.

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

alias-windows-1.1.1.tar.gz (4.6 kB view hashes)

Uploaded Source

Built Distribution

alias_windows-1.1.1-py2.py3-none-any.whl (4.8 kB view hashes)

Uploaded Python 2 Python 3

Supported by

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