<?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 Jothi on Medium]]></title>
        <description><![CDATA[Stories by Jothi on Medium]]></description>
        <link>https://medium.com/@Jothi.?source=rss-fa8df2e9fa48------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*TMVeUaE_XXkgacFK</url>
            <title>Stories by Jothi on Medium</title>
            <link>https://medium.com/@Jothi.?source=rss-fa8df2e9fa48------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 05 Dec 2026 20:12:38 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@Jothi./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[Edit Host/User name in new macOS]]></title>
            <link>https://medium.com/@Jothi./edit-host-user-name-in-new-macos-6984e377ea5?source=rss-fa8df2e9fa48------2</link>
            <guid isPermaLink="false">https://medium.com/p/6984e377ea5</guid>
            <category><![CDATA[mac]]></category>
            <category><![CDATA[terminal]]></category>
            <dc:creator><![CDATA[Jothi]]></dc:creator>
            <pubDate>Mon, 21 Mar 2022 03:55:00 GMT</pubDate>
            <atom:updated>2022-03-21T04:04:04.318Z</atom:updated>
            <content:encoded><![CDATA[<h3>Edit Host/User name in new the macOS</h3><h4>Learn how to change your Terminal prompt</h4><p>For macOS Catalina 10.15 above, Apple is now using Zsh as the default shell</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/464/1*kOyJR7T6VXsk_9l4ZMBDiw.png" /><figcaption>check the default shell before trying the below</figcaption></figure><p>From my personal experience, there is no major change when switching from bash shell → zsh shell. Of course, now the shell script file changed from <em>.bashrc </em>→ <em>.zshrc</em> as well.</p><p>The moment you open the terminal, <em>.zshrc</em> execute first and your computer name come out!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/302/1*lar44b5XD9i95ptDAXHKAw.png" /></figure><p>If you wish to change the username / hostname, do the following steps:</p><ol><li>Open the file <strong>/private/etc/zshrc</strong> in a text editor, using nano below</li></ol><p>2. Locate the comment: # Default prompt</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uhhdyLxTJaZc2YRjXWRUmg.png" /></figure><p>3. Modify the line that looks like this: <strong>PS1=&quot;%n@%m~ %&amp; # &quot;</strong></p><ul><li>Remove &quot;%m&quot; to get rid of the host name</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0TVE8X8Ju0vC5G41sHHMfw.png" /></figure><ul><li>Remove &quot;%n&quot; to get rid of the user name</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CAM5r6tmd6Xqqo_47do7Ew.png" /></figure><ul><li>Remove &quot;%n@%m&quot; to get rid of both the username and computer name</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dW6s00n2g4pQyCgjPuxCAQ.png" /></figure><p>4. You can also give a static name for your terminal permanently</p><p>5. After making changes, as you like. Save the changes with ^O and an return</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/272/1*ItdjrlMv4WDUkrjeWgNVUQ.png" /></figure><p>6. If you wish to use iTerm2 and integrate with zsh shell, take a look at this article: <a href="https://www.freecodecamp.org/news/how-to-configure-your-macos-terminal-with-zsh-like-a-pro-c0ab3f3c1156/">https://www.freecodecamp.org/news/how-to-configure-your-macos-terminal-with-zsh-like-a-pro-c0ab3f3c1156/</a></p><p>That’s all! See you next time!</p><p><em>*Disclaimer*: This article is inspired by </em><a href="https://stackoverflow.com/questions/31848957/zsh-hide-computer-name-in-terminal"><em>https://stackoverflow.com/questions/31848957/zsh-hide-computer-name-in-terminal</em></a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6984e377ea5" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>