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

Terminal Keeper seams to use powershell command syntax #7

Closed dawosch closed 5 months ago

dawosch commented 7 months ago

Describe the bug In VS Code i'm using the cmd. So Terminal Keeper seams to use this setting also. Now when i'm using multiple commands as array the commands will be concatted with a semi colon ; symbol which is not working with cmd (cmd wants a & or a &&).

To Reproduce

  1. Set cmd as vs code default terminal
  2. Create a session profile and add multiple commands in the commands array
  3. Enable the auto execute commands setting
  4. On Session activation the commands will be failed because the commands are concatted with a semi colon ;

Expected behavior When cmd is the default terminal commands should be concatted with &

Platform:

nguyenngoclongdev commented 5 months ago

@dawosch

Thank you for your feedback. In the latest version, 1.1.14, I have included a new option called "joinOperator." This option allows you to specify the operator used to join commands. You have the flexibility to customize the operator according to your preferences, such as using (;), (&&), or (||). For more details, please refer to the README at the following link: GitHub - nguyenngoclongdev/vs-terminal-keeper#terminal-options