title: ConEmu with Bash - Show Folder in Tab Bar
body: <p>This question is very similar to <a href="https://stackoverflow.com/questions/39896401/conemu-with-git-bash-show-folder-in-tab-bar">ConEmu with Git Bash - Show folder in tab bar</a>, except that it relates to Bash running in the Windows Subsystem for Linux.</p>
  
  <p>I'd like to display the current directory in the tab bar.  The ConEmu <a href="https://conemu.github.io/en/ShellWorkDir.html#bash_and_other_cygwin_shells" rel="nofollow noreferrer">documentation for setting working dir in bash</a> says to use the command <code>PROMPT_COMMAND='ConEmuC -StoreCWD'</code> in my profile, but I am unable to run that command.  If I do, I get the following error:</p>
  
  <pre><code>conan@ALLP0122 /mnt/c/Program Files/ConEmu/ConEmu $ ./ConEmuC.exe
  Failed to connect to bash.exe: No such file or directory
  </code></pre>
  
  <p>Am I using the correct approach but have done something wrong, or should I be trying something else?  I'm sure it's possible to do this, but how do I achieve it in ConEmu?</p>
  
  <p>ConEmu 190714</p>
  
  <p><strong>Update:</strong> I'm still trying to do this, so I've started again. I've tried following the provided instructions, by setting my task command <a href="https://conemu.github.io/en/BashOnWindows.html#connector" rel="nofollow noreferrer">as suggested</a> to:</p>
  
  <pre><code>set "PATH=%ConEmuBaseDirShort%\wsl;%PATH%" &amp; %ConEmuBaseDirShort%\conemu-cyg-64.exe --wsl -cur_console:pm:/mnt
  </code></pre>
  
  <p>I believe that the <code>conemu-cyg-64.exe</code> means I'm running the cygwin/msys connector,but I'm not sure how to know whether I'm running wslbridge?  </p>
  
  <p>I've set my task parameters to:</p>
  
  <pre><code>/dir %CD% /icon "%USERPROFILE%\AppData\Local\lxss\bash.ico"
  </code></pre>
  
  <p>I have a bunch of stuff in my PS1 that displays Git info correctly, and I've made sure that unprintable characters are escaped as mentioned <a href="https://conemu.github.io/en/ShellWorkDir.html#connector-ps1" rel="nofollow noreferrer">here</a>, and I've added the following to the end of my <code>.bashrc</code>:</p>
  
  <pre><code>if [[ -n "${ConEmuPID}" ]]; then
    PS1="$PS1\[\e]9;9;\"\w\"\007\e]9;12\007\]"
  fi
  </code></pre>
  
  <p>I've also tried adding this without the <code>if</code> just in case, but it made no difference.  I still don't see the path in the tab or title bar:</p>
  
  <p><a href="https://i.stack.imgur.com/yvHKa.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/yvHKa.png" alt="enter image description here"></a></p>
  
  <p>What have I missed?</p>