ConEmu: Open a new shell of the same configuration with a GuiMacro

1

How can I open up a new ConEmu shell of the same configuration?

For example, currently I open a new git bash shell with this GuiMacro:

Shell("new_console", "{Bash::Git bash}", "", "%CD%")

How can I make this more generic? So that if I am in a git bash shell, it will use {Bash::Git bash}; but if I am in a cmd prompt, it will use {Shells::cmd}

johnnyodonnell

Posted 2017-04-06T01:31:57.123

Reputation: 111

Answers

0

Use this GUI Macro Command: Shell("new_console") This will launch the same shell you have currently running.

My Macro and its Shortcut

I use it with the Control+Shift+Enter shortcut.

sauravsahu

Posted 2017-04-06T01:31:57.123

Reputation: 220

I don't think this will open a new shell in the same directory – johnnyodonnell – 2017-06-28T19:03:00.917

You might have to play around with the %CD% a little bit. – sauravsahu – 2017-06-28T19:05:49.267