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 details)

Uploaded Source

Built Distribution

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

Uploaded Python 2 Python 3

File details

Details for the file alias-windows-1.1.1.tar.gz.

File metadata

  • Download URL: alias-windows-1.1.1.tar.gz
  • Upload date:
  • Size: 4.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.0

File hashes

Hashes for alias-windows-1.1.1.tar.gz
Algorithm Hash digest
SHA256 cf30000874becb019c0926aa3119bf3cdd75be3acbe6a6d0a52a3dd3dd935352
MD5 b5a04eafb57d8779f5053fa2dbfb5f7a
BLAKE2b-256 34dab0d9b25cb615c7d758a5b256444cda3bcbcd2aa08fe1b2310c381e59ddc9

See more details on using hashes here.

File details

Details for the file alias_windows-1.1.1-py2.py3-none-any.whl.

File metadata

  • Download URL: alias_windows-1.1.1-py2.py3-none-any.whl
  • Upload date:
  • Size: 4.8 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.0

File hashes

Hashes for alias_windows-1.1.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 c2cda9c8a95c6c6b75bc9b5aecf9aedd3b4b41d8d32f352dcfdb46875fb7bf15
MD5 2e9f94361ccb3203b26e97e29ea9f519
BLAKE2b-256 62b060e0bd587fb2e12db75e15b0cbf8859be2002bd9c9896051cadd1c8b4afe

See more details on using hashes here.

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