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.0.tar.gz (4.6 kB view details)

Uploaded Source

Built Distribution

alias_windows-1.1.0-py2.py3-none-any.whl (4.7 kB view details)

Uploaded Python 2 Python 3

File details

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

File metadata

  • Download URL: alias-windows-1.1.0.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.0.tar.gz
Algorithm Hash digest
SHA256 19c4eb022cde47ca64f53912382d1eaa963de0beadaad58248ab395e74f96024
MD5 878199e7e806429c7c902cdb0917fea1
BLAKE2b-256 8e3901336164d0b865f14f65521ba6babb869c29dc7b7d61567acad13c2042fa

See more details on using hashes here.

File details

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

File metadata

  • Download URL: alias_windows-1.1.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 4.7 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.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 c5268534d44592027fe0554c4248596781abe3c22fcb5042a8330e1410884341
MD5 8951c6a9236e36e18aa56d33b261b6d4
BLAKE2b-256 19deaac328523b778ecb698f8d0489d9878ef2af0047d4c3c9547efb56704c6c

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