pramod
Surprisingly, I did/learnt this yesterday. I was a Linux dev, but due to some reason I switched to Windows, and yes powershell alias function are super useful and productive. Check this out
How to set powershell alias function with parameters?
Here how you can set aliases in your windows PowerShell with specific parameters:
Type notepad $profile
and Notepad will gat opened
Check these commands to set functions
function pm{ python manage.py $args }
Here, pm
will accept any arguments after it and executes the given function. Type any code similar to this to accept arguments on the Notepad, and save it.
Example
Executing pm runserver
will run the code python manage.py runserver
.
Hope you got it…
