Billu
Billu

Reputation: 11

How to set a ready command when opening powershell?

I mainly use powershell to run a server i.e, my first and (mostly) one command is

python manage.py runserver

I seldom have to use other commands.

How can I configure the powershell to open the window with that command. Please note: that I already keep the powershell configured to open in the desired directory.

Upvotes: 0

Views: 133

Answers (1)

sodawillow
sodawillow

Reputation: 13176

You can use the PowerShell profile to preload anything useful in your PowerShell session (variables, functions, commands, ...) :

All About PowerShell Profiles

Upvotes: 2

Related Questions