<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Ruslan&#39;s Tech Blog</title>
    <link>https://blog.bekenev.net/tags/tmux.html</link>
    <description>Software development related stuff</description>
    <language>en-us</language>
    <lastBuildDate>Fri, 14 Dec 2018 00:00:00 +0000</lastBuildDate>
    <atom:link href="https://blog.bekenev.net/tags/tmux/feed.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Tmux. Change default start directory</title>
      <link>https://blog.bekenev.net/2018/12/14/tmux-change-default-start-dir.html</link>
      <pubDate>Fri, 14 Dec 2018 00:00:00 +0000</pubDate>
      <guid>https://blog.bekenev.net/2018/12/14/tmux-change-default-start-dir.html</guid>
      <description>&lt;p&gt;Hi,&lt;/p&gt;&#xA;&lt;p&gt;if you use tmux you could notice that every time you create new window&#xA;it starts in the directory where you initiated your Tmux session.&lt;/p&gt;&#xA;&lt;p&gt;Usually I start my Tmux at home directory but when I work for a project&#xA;I like to have all my windows to be opened in this particular project.&lt;/p&gt;&#xA;&lt;p&gt;Sure I can close the session and start the new one from the project directory but&amp;hellip; no.&lt;/p&gt;&#xA;&lt;p&gt;The way you can do it from withing Tmux is press your &lt;code&gt;&amp;lt;prefix&amp;gt;+:&lt;/code&gt; to open the command mode.&lt;/p&gt;&#xA;&lt;p&gt;Now enter &lt;code&gt;attach -c &amp;lt;your-default-start-directory&amp;gt;&lt;/code&gt;.&#xA;That&amp;rsquo;s all.&lt;/p&gt;&#xA;&lt;p&gt;It works outside of Tmux as well. You can run it this way &lt;code&gt;tmux attach-session -t &amp;lt;you session&amp;gt; -c &amp;lt;your-default-start-directory&amp;gt;&lt;/code&gt;.&lt;/p&gt;&#xA;</description>
    </item>
  </channel>
</rss>
