<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: satoru</title>
    <description>The latest articles on DEV Community by satoru (@satoru).</description>
    <link>https://dev.to/satoru</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F90710%2Fcac23522-ddc9-43da-baff-a1ca97a12441.jpeg</url>
      <title>DEV Community: satoru</title>
      <link>https://dev.to/satoru</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/satoru"/>
    <language>en</language>
    <item>
      <title>Faster Way to Change Directory on Linux/macOS</title>
      <dc:creator>satoru</dc:creator>
      <pubDate>Wed, 25 Nov 2020 12:51:19 +0000</pubDate>
      <link>https://dev.to/satoru/change-directory-really-quick-in-linux-macos-31fe</link>
      <guid>https://dev.to/satoru/change-directory-really-quick-in-linux-macos-31fe</guid>
      <description>&lt;p&gt;As developers, we spend a lot of time working in the command line, and &lt;strong&gt;we change directories frequently&lt;/strong&gt;. Procedures that we do frequently are worth optimizing, in this post I'll introduce &lt;a href="https://github.com/suzaku/shonenjump"&gt;a tool&lt;/a&gt; I wrote that might help you save more time changing directories.&lt;/p&gt;

&lt;p&gt;Suppose that in your daily development routine, you often need to switch between the following directories:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nb"&gt;cd&lt;/span&gt; ~/go/src/github.com/pingcap/tidb
&lt;span class="nb"&gt;cd&lt;/span&gt; ~/go/src/github.com/pingcap/tidb-binlog
&lt;span class="nb"&gt;cd&lt;/span&gt; ~/projects/redis
&lt;span class="nb"&gt;cd&lt;/span&gt; /tmp
&lt;span class="nb"&gt;cd&lt;/span&gt; /usr/local/Cellar
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Without any tool, the best you could do to save some typing is to use &lt;code&gt;..&lt;/code&gt; or shell history. But we can do better.&lt;/p&gt;

&lt;p&gt;I rewrote autojump in Go and created the tool &lt;a href="https://github.com/suzaku/shonenjump"&gt;shonenjump&lt;/a&gt;. With this tools, once you have entered the previous directories once, they would be saved in a data file, and then we can access them quickly:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;j tidb &lt;span class="c"&gt;# Jump to ~/go/src/github.com/pingcap/tidb&lt;/span&gt;
j go git tidb &lt;span class="c"&gt;# Jump to ~/go/src/github.com/pingcap/tidb&lt;/span&gt;
j tm &lt;span class="c"&gt;# Jump to /tmp&lt;/span&gt;
j Cell &lt;span class="c"&gt;# Jump to /usr/local/Cellar&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;If you are interested to improve your productivity, please give it a try, it can be easily installed and uninstalled with &lt;code&gt;Homebrew&lt;/code&gt; on macOS.&lt;/p&gt;

</description>
      <category>productivity</category>
      <category>opensource</category>
      <category>zsh</category>
      <category>bash</category>
    </item>
  </channel>
</rss>
