<?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 Petr Miko on Medium]]></title>
        <description><![CDATA[Stories by Petr Miko on Medium]]></description>
        <link>https://medium.com/@petr.miko.emplifi?source=rss-6f3782179f40------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*g9piTK7w8ZYoXb2c</url>
            <title>Stories by Petr Miko on Medium</title>
            <link>https://medium.com/@petr.miko.emplifi?source=rss-6f3782179f40------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 19:36:11 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@petr.miko.emplifi/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[Love your CLI a bit more]]></title>
            <link>https://medium.com/socialbakers-engineering/love-your-cli-a-bit-more-50f07c06228a?source=rss-6f3782179f40------2</link>
            <guid isPermaLink="false">https://medium.com/p/50f07c06228a</guid>
            <category><![CDATA[cli]]></category>
            <category><![CDATA[tools]]></category>
            <dc:creator><![CDATA[Petr Miko]]></dc:creator>
            <pubDate>Fri, 23 Aug 2024 10:51:34 GMT</pubDate>
            <atom:updated>2024-08-23T10:51:34.279Z</atom:updated>
            <content:encoded><![CDATA[<p>Let’s face it — as developers we spend a significant amount of time in the terminal. Some people love it, some people hate it, but no matter which group you belong to, I am nearly certain you can try a few recommendations from this article to make your time in the terminal a better experience 🙂</p><p><em>Disclaimer before we start:</em></p><ul><li><em>the steps are my personal favorites and your preferred selection of tools may vary</em></li><li><em>while I tried to target all major operating systems and a broader audience, you can probably tell I am a Node.js developer working in zsh</em></li></ul><h3>0. Prepare a package manager</h3><p>Linux user? Great, you’re all set and can jump to the next section. But for the Windows and MacOS users installing new applications via the terminal can seem a bit intimidating at first. Sure, for the non-juniors among you, this is obvious, but let’s agree that package managers are great as they do the following:</p><ul><li>Provide a universal interface to operate with the application lifecycle. Find, get info, update, remove… All there. So you can even write a script to set up your machine.</li><li>Usually edit your environment variables like <em>$PATH</em>, prepare symlinks, so you can use the app without any more tinkering. If not, it tells you what to do.</li></ul><p>So what are the options here?</p><ul><li>🪟 winget (<a href="https://apps.microsoft.com/detail/9nblggh4nns1">MS Store</a> or follow the <a href="https://learn.microsoft.com/en-us/windows/package-manager/winget/">official article</a>)<br>- Microsoft’s proprietary solution<br>- you can also use <a href="https://learn.microsoft.com/en-us/windows/wsl/install">WSL</a> → welcome to the Linux world</li><li>🍎 Homebrew (<a href="https://brew.sh/">official site</a>)</li><li>🐧 Homebrew is also an option. Or use your OS’ package manager like dnf.</li></ul><h3>1. Choose you CLI application</h3><p>Ok, so you are not using raw Linux terminal with tmux, right. Right?… While there are some default terminal applications in our operating systems and the Linux ones are kinda OK, the Windows and MacOS default terminal apps feel suboptimal. Ugly, old, not offering many shortcuts and/or customizations. Yep, they mostly suck. So the first step is selecting a better application.</p><ul><li>🪟 Windows Terminal (<a href="https://apps.microsoft.com/detail/9n0dx20hk701">MS store</a> or <em>winget install -e — id Microsoft.WindowsTerminal</em>)<br>- should be default in Windows 11 by some update, but you can switch yourself in Win10/11 if you’re still stuck with cmd</li><li>🍎 iTerm2 (<a href="https://iterm2.com/">official site</a> or <em>brew install cask iterm2</em>)</li><li>🐧 KiTTY (<a href="https://sw.kovidgoyal.net/kitty/">official site</a> or your package manager of choice)</li></ul><h3>2. Install fonts with icons and ligatures support</h3><p>Following steps in this article will expect fonts that can show you fancy ligatures and icons in the directory list or next to the name of your current git branch. What is a ligature? See an example in the next picture:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/356/1*pmoRF17IIHNYPtD_OdTnuw.png" /><figcaption>Example of font ligature</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qAXPp9ani22MgiQPAGFJgw.png" /><figcaption>Icons in eza output</figcaption></figure><p>Head out to <a href="https://www.nerdfonts.com/font-downloads">Nerd Fonts</a>, make your pick and install some font(s)! My favourite pick is FiraCode Nerd Font.</p><h3>3. Shell themes and plugins</h3><p>By now you have your fancy terminal app loaded with great fonts, only the terminal looks are still not tweaked. So it is time to select a Theme manager based on your shell and install it!</p><ul><li><strong>powershell</strong> — Oh My Posh (<a href="https://ohmyposh.dev/">official site</a>, <em>winget install -e — id JanDeDobbeleer.OhMyPosh</em>, <em>brew install oh-my-posh</em> )</li><li><strong>zsh</strong> — Oh My ZSH (script from <a href="https://ohmyz.sh/">official site</a> is the preferred way)</li></ul><p>For both, there are plenty of available themes you can pick from, and both rely on storing the configuration in the shell profile/resource file. Follow their respective tutorials closely. Or if you want to just read the article for now, I will provide my example Powershell profile file and zshell configs by the end of it.</p><p>But wait! Did I mention plugins? Yes, but only for Oh My ZSH. You can extend its behavior based on any of <a href="https://github.com/ohmyzsh/ohmyzsh/wiki/Plugins">community available plugins</a> to alter your shell behavior even further. My favorite plugin is <em>history-substring-search </em>— type a few letters that are present in any location of some command you’ve run in the past, press the up arrow button, and bam! You are browsing through history in CTRL+R style with ease!</p><h3>4. Install all the applications!</h3><p>Congratulations! You are entering the last yet never-ending task of finding the right CLI application you will use for your daily tasks 🎉. But what are the options? For Unix-like systems, I can recommend looking into <a href="https://github.com/ibraheemdev/modern-unix">Modern Unix list</a>. I am sure you will find some that will catch your eye. But what about Windows? I got some tips even for you.</p><h3>4.1 Eza</h3><p><a href="https://github.com/eza-community/eza">Eza</a> is a Rust-based successor of the no longer maintained <em>exa</em>, so it is basically an <em>ls</em> alternative on steroids. And since it is written in Rust, not only is it blazing fast™, but also cross-platform. Now is the time to list your files with icons and all that Git status information!</p><ul><li>🪟 <em>winget install eza-community.eza</em></li></ul><pre># add into Powershell profile file<br>function EzaAliasBasic { [alias(&#39;ls&#39;)] param([string]$Path=&#39;.&#39;)<br>    eza.exe --group-directories-first --icons $Path @Args<br>}<br><br>function EzaAliasList { [alias(&#39;ll&#39;)] param([string]$Path=&#39;.&#39;)<br>    ls -l --git $Path @Args<br>}</pre><ul><li>🍎/🐧 <em>brew install eza</em></li></ul><pre># .zshrc<br>alias ls=&quot;eza --icons --git --group-directories-first&quot;</pre><h3>4.2 Zoxide</h3><p>It has been a few years since a colleague of mine introduced me to the convenience and ease of use of an application named <a href="https://github.com/wting/autojump">autojump</a>. It learns paths you visit by the usual change dir <em>cd</em> traversal, and then you can later auto-jump to that location by typing <em>j</em> plus a few letters in the path…</p><pre>cd ~/Development/analytics-unified<br># vs<br>j uni</pre><p>Seems like no big deal, but the time savings! Especially if you need to switch across many repositories. So why am I writing about <a href="https://github.com/ajeetdsouza/zoxide">zoxide</a> in the section heading and then describing autojump? Because zoxide is autojump but <strong>better</strong>.</p><p>Unlike autojump, written in Python, zoxide is written in Rust, thus it does not require any additional software to run as you are installing a binary. You can change the alias from <em>z</em> to <em>j</em> so you can continue with your autojump-grown muscle memory and avoid qwerty/qwertz issues that non-native speakers, like I often face when switching layouts. And you are not losing your history when making the switch to zoxide — you can import autojump’s history. It cannot get any better, right? Well… It can!</p><p>If you install <a href="https://github.com/junegunn/fzf">fuzzy finder</a> <em>fzf</em> , you can use interactive mode <em>zi</em> (or <em>ji</em> if you set up the alias) to easily search in paths in case of similar result paths for the same input. Love it.</p><ul><li>🪟 <em>winget install -e — id ajeetdsouza.zoxide + winget install -e — id junegunn.fzf</em></li></ul><pre># add into Powershell profile file<br>Invoke-Expression (&amp; { (zoxide init powershell --cmd j | Out-String) })</pre><ul><li>🍎/🐧 <em>brew install zoxide fzf</em></li></ul><pre># .zshrc<br>eval &quot;$(zoxide init --cmd j zsh)&quot;</pre><h3>4.3 Fast Node Manager</h3><p>Remember the time savings I mentioned in the previous section? Here is some more for Node.js developers! I am pretty sure that most of us know about <a href="https://github.com/nvm-sh/nvm">Node Version Manager</a> aka <em>nvm</em>. It serves to switch between various versions of Node.js without much overhead, except for it not making the switch automatically when you open a project directory. And as I mentioned above, I switch between directories. A lot.</p><p><a href="https://github.com/Schniz/fnm">Fast Node Manager</a> <em>fnm</em> registers your <em>.nvmrc</em> files by default so when you enter a folder, it switches to the correct version of Node.js. And if you use the auto-switch on change dir, you can stop thinking about Node.js versions for most of the time. By the way, just by switching from <em>autojump</em> and zsh-scripted <em>nvm</em> autoswitch to <em>zoxide</em>+<em>fnm</em>, I am finally no longer facing VS Code warnings about slow terminal session init. What more can you ask for? Install steps, right?</p><ul><li>🪟 <em>winget install -e — id Schniz.fnm</em></li></ul><pre># add into Powershell profile file<br>fnm env --use-on-cd | Out-String | Invoke-Expression</pre><ul><li>🍎 / 🐧 <em>brew install fnm</em></li></ul><pre># .zshrc<br>eval &quot;$(fnm env --use-on-cd)&quot;</pre><p>As for <a href="https://volta.sh/">Volta</a> — yes, it is a great tool which even switches to the right version after pulling the updated package.json from remote, which FNM cannot do, but it does not provide a prebuilt binary for Asahi Linux. I heard there are people who do not like that. Like me. So the “official reason” or made-up excuse for my recommendation of FNM is, of course, that our company is already invested in <em>.nvmrc</em> files.</p><h3>4.4 Fastfetch</h3><p>Life is not only about productivity. Sometimes we need some things just for the sake of liking them. Like this system overview list in your terminal:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dKaUxp5GdCyDJ1Id0gObPg.png" /></figure><p>“Hey, that is Neofetch!”. Nope, <a href="https://github.com/fastfetch-cli/fastfetch">Fastfetch</a>. Neofetch was recently <a href="https://github.com/dylanaraps/neofetch">archived</a>, so Fastfetch is now the maintained way to get cool looking overviews of your setup.</p><ul><li>🪟 <em>winget install fastfetch</em> or <a href="https://github.com/fastfetch-cli/fastfetch/releases/">releases page</a></li><li>🍎 / 🐧 <em>brew install fastfetch</em></li></ul><h3>5. Is there more?</h3><p>For sure there is. I could recommend you <em>tig</em> for easy work with git logs and changes in commits, but that is not easily installable cross-platform. There are apps in the <a href="https://github.com/ibraheemdev/modern-unix">Modern Unix list</a>. And certainly there are some new fresh applications I have never heard of yet. Or I could tell you that you can use <em>export EDITOR=”code -w -n”</em> to use VS Code for editing commits instead of that “infamous” Vim.</p><p>But at least I hope, you learned a thing or two about the possibilities and in case you knew them all already, you at least enjoyed this article! Feel free to add comments and here are the promised <a href="https://gist.github.com/petrmiko/62b1ee39a3cef26370f3222dce28e8b1">Powershell profile</a> and <a href="https://gist.github.com/petrmiko/67fac1735d0d18191f828455a8ba6e5d#file-zshrc">ZSH</a> files.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=50f07c06228a" width="1" height="1" alt=""><hr><p><a href="https://medium.com/socialbakers-engineering/love-your-cli-a-bit-more-50f07c06228a">Love your CLI a bit more</a> was originally published in <a href="https://medium.com/socialbakers-engineering">Emplifi</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>