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

Closed
opened 2026-01-30 22:29:14 +00:00 by claunia · 5 comments
Owner

Originally created by @Aster-the-Med-Stu on GitHub (Jun 4, 2019).

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

Originally created by @Aster-the-Med-Stu on GitHub (Jun 4, 2019). # 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](https://user-images.githubusercontent.com/32929636/58846179-dbb5c680-86b0-11e9-9c25-95bcb8da7e25.png)
Author
Owner

@Summon528 commented on GitHub (Jun 4, 2019):

This is also an easy way to have a SSH profile

@Summon528 commented on GitHub (Jun 4, 2019): This is also an easy way to have a SSH profile
Author
Owner

@zadjii-msft commented on GitHub (Jun 4, 2019):

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

@zadjii-msft commented on GitHub (Jun 4, 2019): You mean like setting a custom commandline? For example, my profile for doing Terminal development: ![image](https://user-images.githubusercontent.com/18356694/58880972-c899fb00-869e-11e9-9c56-95cbb5665434.png) where `#work 1` is a script that basically just calls `cd <path to Terminal repo> && tools\razzle.bat`
Author
Owner

@Aster-the-Med-Stu commented on GitHub (Jun 5, 2019):

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

@Aster-the-Med-Stu commented on GitHub (Jun 5, 2019): Oh never noticed that in the config setting... Hoping that in the future the GUI settings would include this.
Author
Owner

@fredrikaverpil commented on GitHub (Jun 24, 2019):

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!

@fredrikaverpil commented on GitHub (Jun 24, 2019): 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!
Author
Owner

@remcolam commented on GitHub (Jun 24, 2019):

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

@remcolam commented on GitHub (Jun 24, 2019): 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
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#1511