Terminal: Feature Request: Ability to Setup Custom Tasks/Startup scripts for New Tabs

Created on 4 Jun 2019  路  5Comments  路  Source: microsoft/terminal

Summary of the new feature/enhancement

Other terminals, like ConEmu, allow users to setup custom startup script (known as tasks in ConEmu). This would be quite handy in some scenarios requesting running a startup script, like Anaconda PowerShell Prompt.

ConEmu running Anaconda PowerShell Prompt

Area-Settings Issue-Feature Needs-Attention Needs-Triage Product-Terminal

Most helpful comment

You mean like setting a custom commandline?

For example, my profile for doing Terminal development:
image

where #work 1 is a script that basically just calls cd <path to Terminal repo> && tools\razzle.bat

All 5 comments

This is also an easy way to have a SSH profile

You mean like setting a custom commandline?

For example, my profile for doing Terminal development:
image

where #work 1 is a script that basically just calls cd <path to Terminal repo> && tools\razzle.bat

Oh never noticed that in the config setting... Hoping that in the future the GUI settings would include this.

Anyone know how to achieve this but with Powershell Core instead?

I have this, but it doesn't work, as the pwd command doesn't seem to be executed at all:

"commandline" : "C:\\Program Files\\PowerShell\\6\\pwsh.exe -noexit -c pwd",

EDIT: Never mind, the above command works fine, just make sure the guid is unique in the profile entry!

So how do I get I the visual studio developer commandline batch file to execute?

"commandline" : "cmd.exe /k \"C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Enterprise\\Common7\\Tools\\VsDevCmd.bat\"",

The above isn't working, I get: 'C:\Progam' is not recognized as an internal or external command, operable program or batch file.

I think I am correctly escaping the quotes to get the full path to the batch file in there

Was this page helpful?
0 / 5 - 0 ratings

Related issues

zadjii-msft picture zadjii-msft  路  3Comments

mrmlnc picture mrmlnc  路  3Comments

wkbrd picture wkbrd  路  3Comments

alabuzhev picture alabuzhev  路  3Comments

warpdesign picture warpdesign  路  3Comments