ConEmu: How to make a task automatically closed after completion

I have the following task configured in ConEMU

TASKKILL / IM iexplore.exe / F

After starting the task, the console window opens with a confirmation dialog box "Press Enter or Esc to close the console window."

Is there a way for my task to automatically close the tab after completing its operations.

I tried using -cur_console and -new_console, but they don't seem to do what I need.

+12
source share
2 answers

In the menu "Settings"> "Integration"> "Default value":

there is a parameter "Confirm closing",

ConEmu Settings Screenshot

+19
source

According to this documentation you can use the switch :n :

 n - disable 'Press Enter or Esc to close console 

For example, the following task opens a new tab, performs git pull for the wizard, and then closes automatically again:

 -new_console:n cd C:\my_git_repo & git fetch --all & git checkout master & git pull 

Be careful as it closes the tab even for unsuccessful status codes.

0
source

All Articles