title: ConEmu + Ubuntu Bash: How to open new tab in current directory
body: <p>I recently switched from GitBash to Ubuntu Bash.
  I use the Ubuntu Bash with ConEmu.Unfortunately when I open a new tab the directory switches back to my user directory not the directory of the tab from where I opened a new tab.</p>
  
  <p>Can anyone tell me how to configure ConEmu to open a new Ubuntu Bash in the directory of the last Ubuntu Bash tab?</p>
  
  <p><strike>It would be nice to know how to specify the default directory where ConEmu opens Ubuntu Bash aswell. I don't want it to be my user directory, but my workspace.</strike></p>
  
  <p>Solved by adding <code>-dir "myDirectory"</code> as parameters for my predefined task to open a bash.</p>
  
  <p>With git bash I followed <a href="https://superuser.com/questions/942835/open-a-new-tab-in-conemu-in-the-same-directory-git-bash">maximus suggestion</a> and created a macro he provided </p>
  
  <p><code>Shell("new_console", "{Git bash}", "", "%CD%")</code></p>
  
  <p>and adding the following to my .bashrc</p>
  
  <p><code>PROMPT_COMMAND='ConEmuC -StoreCWD'</code></p>
  
  <p>And set up a call of Shell function in the Keys&amp;Macros. Example assumes you have {Git bash} task.</p>
  
  <p>As a first naive try I just created a new predefined task <code>{Bash:bash}</code> that simply executes <code>bash</code>which starts the ubuntu bash successfully.</p>
  
  <p>Then I tried to change the macro to the following:</p>
  
  <p><code>Shell("new_console:n", "{Bash:bash}", "", "%CD%")</code></p>
  
  <p>Unfortunately the new console is still opened in the default directory.</p>