Manage command aliases in Windows.
> 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%
.
REM Default output
> alias
apktool, gsh, gst
REM Verbosed output
> alias -v
apktool = %SOFTWARE%\apktool\apktool.bat %*
gsh = git show $*
gst = git status --short --branch %*
> alias test=dir \b %*
Added test
REM Use double quotes to wrap commands joined with &&
> alias gpht="git push %* && git push --tags %*"
REM List aliases start with a given input
> alias g
gsh, gst
REM Show the alias
> alias test
dir \b %*
REM Default output
> alias -s apk
baksmali, smali
REM Verbosed output
> alias -s apk -v
baksmali = %SOFTWARE%\apktool\apktool.bat d %*
smali = %SOFTWARE%\apktool\apktool.bat b %*
> alias -d test
Deleted test
alias
uses two environment variables:
%ALIASES_DIR%
which refers to a directory where aliases are stored%PATH%
which is appended with the directory specified in the%ALIASES_DIR%
variable
This project is licensed under the MIT License.