VSCode: How to run a command after each terminal open?

落爺英雄遲暮 提交于 2019-12-07 06:43:09

问题


On Windows I have to run the command start-ssh-agent.cmd on each new terminal session I open. My development environment is VSCode, and I open a dozen new terminals each day. After each terminal open, I have to manually run this command.

Is there is a way to run this command on the terminal each time I open one ?

This may take the form of a VSCode extension, VSCode configuration (settings) or a Windows environment configuration.

Any idea?


回答1:


You can do the following:

"terminal.integrated.shellArgs.windows": ["start-ssh-agent.cmd"]

Modified from: https://code.visualstudio.com/docs/editor/integrated-terminal#_shell-arguments



来源:https://stackoverflow.com/questions/45635168/vscode-how-to-run-a-command-after-each-terminal-open

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!