<?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 Prashant Ugale on Medium]]></title>
        <description><![CDATA[Stories by Prashant Ugale on Medium]]></description>
        <link>https://medium.com/@prashant.ugale1?source=rss-ee9f545f60e5------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*XNwVlDIq62UjZdwv6qMvsA.png</url>
            <title>Stories by Prashant Ugale on Medium</title>
            <link>https://medium.com/@prashant.ugale1?source=rss-ee9f545f60e5------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 17 Nov 2026 19:17:33 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@prashant.ugale1/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[An alternate way for Terminal to improve productivity: iTerm2]]></title>
            <link>https://medium.com/@prashant.ugale1/an-alternate-way-for-terminal-to-improve-productivity-iterm2-64343a8e3eb0?source=rss-ee9f545f60e5------2</link>
            <guid isPermaLink="false">https://medium.com/p/64343a8e3eb0</guid>
            <category><![CDATA[developer]]></category>
            <category><![CDATA[tools]]></category>
            <category><![CDATA[command-line]]></category>
            <category><![CDATA[productivity]]></category>
            <category><![CDATA[iterm2]]></category>
            <dc:creator><![CDATA[Prashant Ugale]]></dc:creator>
            <pubDate>Tue, 25 Feb 2020 14:58:26 GMT</pubDate>
            <atom:updated>2020-02-27T13:10:54.954Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*adxdeUD_O9Vg6JY3y2Oigw.jpeg" /><figcaption><strong>Photo by </strong><a href="https://unsplash.com/@carlheyerdahl"><strong>Carl Heyerdahl</strong></a><strong> &amp; from </strong><a href="https://unsplash.com/"><strong>Unsplash</strong></a></figcaption></figure><h4>Introduction</h4><p>As we know OS provides us default command-line tool as <strong>Terminal</strong> where we can execute commands and get work done. As it’s default tool it will come with limited features and this will cause less productivity or it will enforce you to move some other UI based applications, which will do internally magic for you in a single eye blink. But do you know what command was triggered internally and what was the result of that command? The simple answer is <strong>NO</strong>.</p><blockquote>Using command line tool is a sign of good Developer. Cause you don’t need to depend on any application to do your work, also without your permission nothing will happen behind your eyes.</blockquote><p>Now, we know there are few limitations to improve productivity using Terminal. And as I mentioned above using UI based applications will not lead to learning new things. What are the other options? So there are lots of tools with rich features that will improve your experience with the command-line. Eg. <strong>iTerm2, Hyper, Terminator, MacTerm</strong>. In this article, we will get hands-on to <strong>iTerm2</strong>.</p><h4>Installing iTerm2</h4><p>Installing iTerm2 is as simple as installing other apps on your machine (In this case I’m talking about<strong> Mac</strong>) you can download the stable version of iTerm (Further from here wherever you find iTerm it is iTerm2) from the official website:</p><ul><li><a href="https://iterm2.com/downloads.html">https://iterm2.com/downloads.html</a></li></ul><p>Or if you are interested in the latest versions and new features you can opt-in for test release also even they provide nightly builds (This one is risky to use)<br>Once you complete download you will get zip file just unzip it and you will find <strong>.app</strong> file. Move it to the Application directory as all installed applications reside init. After that double tap on iTerm and you will see a black window.</p><h4>Basic Setup</h4><p>As we have installed a new command-line tool it should be different and colorful than the Terminal. For this go to <strong>Preferences → Appearance,</strong> you can select a theme and a few other changes. Let’s not spend much time on appearance stuff and figure out feature set which can help us in daily life.</p><h3>Features</h3><ul><li><strong>Split Panes <br></strong>There are cases where we need to jump another directory and do some work and jump again another directory and vice a versa, eg. your project consists of multiple submodules and SDK’s. In this case, you need to change a few lines of code in another submodule and then in the main project you need to use that and commit the code. You need to struggle for changing the directories or remembering the paths, and hence Split Panes comes into the picture.<br>You can create multiple panes on a single screen and the interesting thing is you can use them at the same time. Also, you can see the status without changing the window. <br>To split the screen navigate to:<br>shell -&gt; Split Horizontally with Current Profile<br>shell -&gt; Split Vertically with Current Profile<br>or you can use shortcuts <strong>⌘ + SHIFT + D</strong> and <strong>⌘ + D </strong>respectively.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zaES4Ssbi-K-UQFILp8GBQ.png" /></figure><ul><li><strong>Navigating Panes<br></strong>Now we have multiple panes to use but how to navigate between them? Should I use the mouse again? No, not needed its as simple as navigating between your workspaces, just use <strong>⌘ + ⌥ + Arrow (left, right, up and down) <br></strong>Also, If you have lots of Panes open and now you are doing some long task where you need to see more content on a single pane, so we can open that pane with full screen and go back to multi-pane view again. To try this just press <strong>⌘+ SHIFT + ENTER/RETURN </strong>this will show current pane as full screen and use the same keys to go back on multi-pane view.</li><li><strong>Search<br></strong>Search is also available in Terminal, then why iTerm? So if you observe carefully in Terminal when you search any keyword it will highlight only one at a time and you need to press enter key to find next occurrence. Whereas in iTerm once you search a keyword it will show all occurrences on the screen and highlight the current one. This small feature helps you to find text faster. <br>To use the search press:<br><strong>⌘ + F</strong> (This will search inside active pane if you are using multiple panes)</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xtT2cpj8x0GwOyGZRfk40A.png" /></figure><ul><li><strong>AutoComplete<br></strong>This feature is inspired by IDE when you start typing something and IDE gives you suggestions of syntax related to the text. Though this autocomplete is not that powerful or easy to use, because whenever you start typing you need to press <strong>⌘ + ; </strong>to find autocomplete. Don’t worry we have another solution to make faster AutoComplete will explain it further in a blog 😄</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9x73V6hqeCqEtgLjjRmA8w.png" /></figure><ul><li><strong>Paste history<br></strong>It’s another useful feature where you can track any command which you used previously. In case you are doing some critical task and you took help from internet (which we do usually, don’t we? ) and paste it on the command-line tool and proceed to work, after some time we forgot what we picked from internet and its time to use the same command again. Don’t worry, iTerm will keep track of this. To check paste history use this command <strong>⌘+ SHIFT +H</strong></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Qm-TIvw8veZ8C_fOQ6Qezg.png" /></figure><ul><li><strong>256 colors<br></strong>This feature is to just make your life more colorful, you can customize your appearance settings via preferences and profile tab.</li></ul><p>There are a lot more features in iTerm among them I have explained which are important to improve your productivity.</p><p>Wait, it’s not done yet. There are a lot more things which we can do with iTerm to personalize for your use and make it faster, Let’s see how.</p><h4>Installing ZSH</h4><p>It’s a shell also known as Z shell, it’s used to do scripting things, for more information you can read it here:</p><ul><li><a href="https://en.wikipedia.org/wiki/Z_shell">https://en.wikipedia.org/wiki/Z_shell</a></li></ul><p>To install ZSH, run this command:</p><pre>brew install zsh</pre><h4>Magic of Oh My Zsh</h4><p>It’s an open-source framework that manages the ZSH configuration and provides a lot more cool features on top of it. Install it by running this command:</p><pre>sh -c &quot;$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)&quot;</pre><p>Once you finish the installation, the magic begins once you jump to your git repo directory it will start highlighting the branch name, path &amp; many more things.<br>Do you remember a while ago I mentioned about faster autocompletion? Yes, <strong>Oh My Zsh</strong> will do it for you. Once you start typing it will show you the command on the same line with the lighter color. If it’s correct one just press forward arrow(→) and you are done.</p><h4>Changing theme for Oh My Zsh</h4><p>Once you install this framework, it will come with a default theme called robbyrussell. You can change the theme depends on your preferences.<br>To check and update theme run this commandopen ~/.zshrc In this file, you can find the <strong>ZSH_THEME</strong> key and check which theme you are using. For the first time, you will see <strong>robbyrussell, </strong>you can get another theme too and apply it in the same way. Another theme I tried is <strong>agnoster.</strong></p><h4>Shortcuts Commands</h4><p>As a developer we love shortcuts, let’s create our own shortcuts to avoid writing the whole command (though Oh My Zsh will do autocomplete for you) Let’s make it easier to use. For example, I will explain a few basic commands which we can use in a daily basis.<br>What if rather than typing whole command as <strong>git push origin head</strong> we create a shortcut as <strong>gpoh </strong>(initials of each word). When you run the command gpoh, code will push on remote which is at your local branch. Isn’t it more convenient and faster?<br>Let’s create our own shortcut commands (<strong>NOTE</strong>: Terminal also does this similar thing).<br>Run command to open your bash profile:<br>open ~/.bash_profile</p><p>Now at new line type:<br>alias &lt;shortcut command&gt;=&lt;&quot;actual command&quot;&gt;</p><p>Let’s try the above example:<br>alias gpoh=&quot;git push origin HEAD&quot;</p><p>Another bonus command:<br>alias gst=&quot;git status&quot;</p><p>That’s it. Now try to run your new command and see how it works.</p><p>There are a lot more scenarios. Such as, I want to open some files in the sublime text editor. For that also we can create our command:</p><pre>alias subl = “/Applications/Sublime\Text.app/Contents/SharedSupport/bin/subl”</pre><blockquote>Make sure you have sublime application at Applications directory to make the above command work. To try this command go to the command-line and type <em>subl &lt;filename&gt;</em> this will open the file in Sublime.</blockquote><p>Want to know more interesting and more useful stuff, let’s move back to iTerm.<br>Most of the developers are tired of navigating between the command where you misspelled the command. Another case where you want to reuse command by small change for that you need to go back one word or jump to start of the command. As a small kid, we need to hold back the arrow key and wait until it reaches to start of the command. Sometimes we want to move a few words back but these machines make the cursor move faster and make us way back than what we expected, which is really a pain in the ass.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fgiphy.com%2Fembed%2FJpvp8DGDwbjrdWVpyP%2Ftwitter%2Fiframe&amp;display_name=Giphy&amp;url=https%3A%2F%2Fgiphy.com%2Fgifs%2Froosterteeth-rwby-Jpvp8DGDwbjrdWVpyP&amp;image=https%3A%2F%2Fmedia.giphy.com%2Fmedia%2FJpvp8DGDwbjrdWVpyP%2Fgiphy.gif&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=giphy" width="435" height="244" frameborder="0" scrolling="no"><a href="https://medium.com/media/38096b7d978321b6d4f178715b089863/href">https://medium.com/media/38096b7d978321b6d4f178715b089863/href</a></iframe><p>Let’s try to solve this issue and here again iTerm come to help you where we can add custom keys for a specific task. eg. to jump back or forward one word we use<strong> ⌥+ ← or ⌥ + →</strong> respectively.<br>By default, iTerm does not provide this short cut but we can add by our self.</p><p>Open Preferences of iTerm navigate to Profile and select Keys tab you will see lots of keys which are by-default added.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pZWNBRVGARO3chNcuvBn-A.png" /></figure><p>Let’s add our new key by tapping on + to:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/892/1*giMUcn153Jh6Fe97mUhU6g.png" /></figure><p>Then tap on click to set and type they shortcut keys in our example CMD + &lt;- then choose action as <strong>Send Hex Code</strong> and then enter hex code as 0x01 press ok and done.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/888/1*QWiIrMbWbJ-dwhqxN4nKIw.png" /></figure><p>Jump back to the command-line and type any command and try to jump back to the start of the line with a shortcut key. Yey, this is what we want in life.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fgiphy.com%2Fembed%2F13hxeOYjoTWtK8%2Ftwitter%2Fiframe&amp;display_name=Giphy&amp;url=https%3A%2F%2Fgiphy.com%2Fgifs%2Fmrw-get-upvote-13hxeOYjoTWtK8&amp;image=https%3A%2F%2Fmedia.giphy.com%2Fmedia%2F13hxeOYjoTWtK8%2Fgiphy.gif&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=giphy" width="435" height="435" frameborder="0" scrolling="no"><a href="https://medium.com/media/ad5daa4c34a6b19b1ccfd049305e5b94/href">https://medium.com/media/ad5daa4c34a6b19b1ccfd049305e5b94/href</a></iframe><p>Below are a few useful shortcut keys that you can use on a daily basis.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Xfu67t3Iqctow8WGp59Iaw.png" /></figure><h4>Commands At a glance:</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kj2EM_CrKDSrHBvdGakILw.png" /></figure><p>Let me know if you know more shortcuts. I hope you guys will enjoy this post.</p><p>Happy reading…!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=64343a8e3eb0" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>