nguyenngoclongdev / vs-terminal-keeper

Easily save and recall previous terminal sessions, create new sessions, and edit or delete existing ones.
https://marketplace.visualstudio.com/items?itemName=nguyenngoclong.terminal-keeper
MIT License
13 stars 0 forks source link

Run more than two commands #11

Closed DinoFra closed 4 months ago

DinoFra commented 4 months ago

Describe the bug I try to create a session with 1 terminal, and this terminal should run the 2 commands but only 1 is executed.

To Reproduce

"middlewareModule": [ { "name": "terminalTest", "autoExecuteCommands": true, "icon": "pass-filled", "color": "terminal.ansiGreen", "commands": [ ".\channelsEnv\Scripts\deactivate.bat", "cd ..\myFolder" ] } ],

Expected behavior Run the above commands

Platform:

nguyenngoclongdev commented 4 months ago

Hi @DiogoFran ,

By default, commands in Terminal Keeper are join by ";". However, on Windows, the preferred operator to join commands is "&".

To ensure the commands work correctly, please add the following line to the configuration file: joinOperator: "&".

For more information and detailed instructions, you can refer to the GitHub issue at https://github.com/nguyenngoclongdev/vs-terminal-keeper/issues/7.

DinoFra commented 4 months ago

Thank you, you are right!