All my virtualenvs are put into a
venv folder which is inside the project folder.
If I want to activate the virtualenv when inside the project folder I need to enter:
Having to do this many times I really find this cumbersome. And I am looking for something quicker. From inside my project folder I’d like to type
act or something which then automatically activates the
But not being familiar with powershell and all the options available I wonder if someone could give me some clues where to start ? (batch script? cmd script? powershell script? shortcut (
What you want to use is called an alias
In Windows you will use it this way :
New-Alias <nom-alias> <commande>
To make it persistant (be able to use it again after closing and reopening the powershell) you need to put the alias in a configuration file.
Answered By – Tim