简体   繁体   English

打开Powershell时如何设置就绪命令?

[英]How to set a ready command when opening powershell?

I mainly use powershell to run a server ie, my first and (mostly) one command is 我主要使用powershell来运行服务器,即,我的第一个(也是大部分)命令是

python manage.py runserver python manage.py运行服务器

I seldom have to use other commands. 我很少需要使用其他命令。

How can I configure the powershell to open the window with that command. 如何配置Powershell以使用该命令打开窗口。 Please note: that I already keep the powershell configured to open in the desired directory. 请注意:我已经将Powershell配置为在所需目录中打开。

You can use the PowerShell profile to preload anything useful in your PowerShell session (variables, functions, commands, ...) : 您可以使用PowerShell配置文件来预加载PowerShell会话中有用的任何内容(变量,函数,命令等):

All About PowerShell Profiles 关于PowerShell配置文件的所有信息

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM