title: Different starting directory per window?
body: <p>I daily use <code>tmux</code> (2.5) on my laptop to work, and my tmux sessions have a starting directory which is the working directory I started the tmux session from. Every pane/window I open start with this starting directory as working directory.</p>
  
  <p>I can <a href="https://stackoverflow.com/a/36435535/3156085">change this starting directory</a>, and this change would apply to the whole session.</p>
  
  <p>But if I want to work on a different project with several panes, I could start a new window, but every pane I would open in it would start with the session's starting directory : I would have to <code>cd</code> to the new location for each pane which isn't practical.</p>
  
  <p>If I need to work on several project/directories simultaneously, I can start a new terminal session, then <code>cd</code> to the relevant directory/project and start a new tmux session. That's not complicated.</p>
  
  <p>But if I want to do the same thing on a server through <code>ssh</code>, I'd need to either :</p>
  
  <ul>
  <li>open a new ssh session.</li>
  <li>either embed my remote tmux sessions in an other tmux session.</li>
  </ul>
  
  <p>Neither sounds practical to me, I'd prefer a single tmux session on the remote machine.</p>
  
  <p><strong>I think it would be more convenient to being able to start new window with its own starting directory location that would apply to any new pane opened in it. Is there a way to achieve this?</strong></p>
  
  <p><em>Edit :</em> </p>
  
  <p>I already tried the <code>-c</code> parameter of <code>tmux new-window</code> command.</p>
  
  <p>But it doesn't assign its starting directory to the window created this way, it only applies this custom starting directory to the first pane created.</p>
  
  <p>Any new pane opened in this window then uses the session's starting directory as default working dir (and not the path passed to <code>tmux new-window</code>).</p>