VladimirCores / alias

Create dynamic aliases for command line in Windows

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Dynamic alias creator for system Windows.

##Features

  • execute program in fork, or in current command line
  • custom static invoke arguments

##Alternatives:

  • DOSKEY: This doesn't work outside command line
  • Shortcuts (*.lnk): doesn't work for CMD

##Requirements:

  • python
  • folder with script in system PATH

##EXAMPLES: ####1) Register this script as new alias with name 'alias':

python C:\path\to\alias.py add alias python C:\path\to\alias.py

####2) Register notepad with alias 'n':

python C:\path\to\alias.py add n notepad --fork

or if you already registered this script as an 'alias'

alias add n notepad --fork

Now in any place you can just type:

n text.txt

###And it will work! Please note that --fork is important in this case. It will allow to invoke notepad and do not block console. In most cases this is useful for GUI applications.

About

Create dynamic aliases for command line in Windows

License:MIT License


Languages

Language:Python 100.0%