<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Ishan Dongol on Medium]]></title>
        <description><![CDATA[Stories by Ishan Dongol on Medium]]></description>
        <link>https://medium.com/@ishandongol?source=rss-82f24d600cde------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*-MCo28b69pJZZIUps5gR7Q.png</url>
            <title>Stories by Ishan Dongol on Medium</title>
            <link>https://medium.com/@ishandongol?source=rss-82f24d600cde------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 14 Nov 2026 20:45:11 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@ishandongol/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[`pwd` inside sh profile ]]></title>
            <link>https://medium.com/@ishandongol/pwd-inside-sh-profile-603dafa26850?source=rss-82f24d600cde------2</link>
            <guid isPermaLink="false">https://medium.com/p/603dafa26850</guid>
            <category><![CDATA[zsh]]></category>
            <category><![CDATA[bash]]></category>
            <category><![CDATA[zshrc]]></category>
            <category><![CDATA[vscode]]></category>
            <category><![CDATA[oh-my-zsh]]></category>
            <dc:creator><![CDATA[Ishan Dongol]]></dc:creator>
            <pubDate>Tue, 15 Sep 2020 17:49:39 GMT</pubDate>
            <atom:updated>2020-09-15T17:49:39.282Z</atom:updated>
            <content:encoded><![CDATA[<h4>pwd — print name of the current/working directory</h4><h3>pwd is a great command but its a bad idea to use it everywhere. I learned it the hard way 😩.</h3><p>I used it inside .zshrc<strong> </strong>just because I was too lazy to write /home/ishan . You might be wondering I could have just written ~/ instead. As I mentioned earlier pwd is a great command 🤣. Also, I saw that in a tutorial somewhere.</p><pre>export PATH = “`pwd`/path-to-some/bin:$PATH”</pre><p>By now you have already guessed what I was up to. Yes, I added some binary to the system path which is located inside my home directory. Okay, but What was the problem with that?</p><p>There won’t be any problem if the terminal is spawned from the home directory as pwd resolves to /home/ishan . Yayy it works. But the problem arises when the terminal is spawned form the integrated terminal from IDE. In my case <strong>VS Code.</strong></p><p>I guess you have already noticed that the <strong>VS Code </strong>spawns the terminal and you will already be in the project root dir . The integrated terminal will look something like this.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/559/1*cE_Vz238PQER9EfbSbOAjw.png" /><figcaption>zsh in VS Code Integrated Terminal</figcaption></figure><p>So, when .zshrc is sourced,pwd command resolves to /home/ishan/some-project so the above export PATH command won’t find the binary file. So when I try to run the command it won’t work because the binary file is located inside /home/ishan/path-to-some/bin but the terminal is searching for binary at /home/ishan/some-project/path-to-some/bin .</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=603dafa26850" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>