<?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: Luxcih</title>
    <description>The latest articles on DEV Community by Luxcih (@luxcih).</description>
    <link>https://dev.to/luxcih</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.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F1384067%2Fb66d061b-5f31-46c8-ae2f-c1c74f4047f5.png</url>
      <title>DEV Community: Luxcih</title>
      <link>https://dev.to/luxcih</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/luxcih"/>
    <language>en</language>
    <item>
      <title>My Dotfiles, Two Years Later: From GNU Stow to Chezmoi</title>
      <dc:creator>Luxcih</dc:creator>
      <pubDate>Wed, 02 Dec 2026 15:01:42 +0000</pubDate>
      <link>https://dev.to/luxcih/my-dotfiles-two-years-later-from-gnu-stow-to-chezmoi-5h1f</link>
      <guid>https://dev.to/luxcih/my-dotfiles-two-years-later-from-gnu-stow-to-chezmoi-5h1f</guid>
      <description>&lt;h2&gt;
  
  
  Introduction
&lt;/h2&gt;

&lt;p&gt;It's been a while since I last wrote something here.&lt;/p&gt;

&lt;p&gt;Back in 2024, I wrote about how I managed my configuration files using GNU Stow and Git. It was a pretty simple setup: keep everything in one repository, create symlinks, and have my configurations ready whenever I needed them.&lt;/p&gt;

&lt;p&gt;And quite a bit has changed since then.&lt;/p&gt;

&lt;p&gt;I've switched from GNU Stow to chezmoi, moved my Neovim configuration into its own repository, and made several changes to the tools and configurations I use daily.&lt;/p&gt;

&lt;p&gt;I figured it was time to revisit the setup and share what's different.&lt;/p&gt;

&lt;h2&gt;
  
  
  Out with Stow, in with Chezmoi
&lt;/h2&gt;

&lt;p&gt;The biggest change is probably how I manage my dotfiles.&lt;/p&gt;

&lt;p&gt;I used to rely on &lt;a href="https://www.gnu.org/software/stow/" rel="noopener noreferrer"&gt;GNU Stow&lt;/a&gt;, which worked well for organizing and symlinking my configuration files. Eventually, I moved to &lt;a href="https://www.chezmoi.io/" rel="noopener noreferrer"&gt;chezmoi&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Chezmoi takes a slightly different approach. Instead of treating the repository as a directory structure that gets symlinked into my home directory, it maintains a source directory and manages the files that get applied to their respective locations.&lt;/p&gt;

&lt;p&gt;It also has its own naming conventions. For example:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;dotfiles/
├── dot_config/
│   ├── bat/
│   ├── eza/
│   └── fish/
├── dot_gitconfig
└── .chezmoiexternal.toml
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Here, &lt;code&gt;dot_config&lt;/code&gt; represents &lt;code&gt;~/.config&lt;/code&gt;, while &lt;code&gt;dot_gitconfig&lt;/code&gt; becomes &lt;code&gt;~/.gitconfig&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;The switch also changed my usual workflow. I can edit managed files, preview changes, and apply them without manually dealing with symlinks.&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="c"&gt;# Edit a managed file&lt;/span&gt;
chezmoi edit ~/.config/fish/conf.d/theme.fish

&lt;span class="c"&gt;# See what will change&lt;/span&gt;
chezmoi diff

&lt;span class="c"&gt;# Apply changes&lt;/span&gt;
chezmoi apply
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;And when I need to work directly with the source files, there's:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;chezmoi &lt;span class="nb"&gt;cd&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;From there, I can use Git as usual to commit and push my changes.&lt;/p&gt;

&lt;h2&gt;
  
  
  My terminal setup
&lt;/h2&gt;

&lt;p&gt;Most of my dotfiles are still centered around the command-line tools I use every day.&lt;/p&gt;

&lt;p&gt;I've been using Fish as my shell, and one of the things I like about it is how easy it is to organize custom functions.&lt;/p&gt;

&lt;p&gt;For file listing, I use &lt;a href="https://github.com/eza-community/eza" rel="noopener noreferrer"&gt;eza&lt;/a&gt;, with a few Fish functions to avoid repeatedly typing the same options.&lt;/p&gt;

&lt;p&gt;For example:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;l       &lt;span class="c"&gt;# Regular listing&lt;/span&gt;
la      &lt;span class="c"&gt;# Include hidden files&lt;/span&gt;
ll      &lt;span class="c"&gt;# Long listing&lt;/span&gt;
lla     &lt;span class="c"&gt;# Long listing with hidden files&lt;/span&gt;
t       &lt;span class="c"&gt;# Tree view&lt;/span&gt;
ta      &lt;span class="c"&gt;# Tree view with hidden files&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;They're small conveniences, but they're things I end up using constantly.&lt;/p&gt;

&lt;p&gt;I also use &lt;a href="https://github.com/ajeetdsouza/zoxide" rel="noopener noreferrer"&gt;zoxide&lt;/a&gt; for directory navigation. It's integrated into Fish, with initialization guarded by a simple check so it doesn't run when zoxide isn't installed.&lt;/p&gt;

&lt;h3&gt;
  
  
  Keeping things consistent
&lt;/h3&gt;

&lt;p&gt;I've also settled on Catppuccin Mocha as the color scheme across several of my terminal tools.&lt;/p&gt;

&lt;p&gt;I have configurations for Fish, &lt;a href="https://github.com/sharkdp/bat" rel="noopener noreferrer"&gt;bat&lt;/a&gt;, and eza, keeping the same palette across the terminal.&lt;/p&gt;

&lt;p&gt;For eza, I even have a custom theme configuration that covers more than just file types. It includes colors for permissions, file sizes, Git states, and other metadata.&lt;/p&gt;

&lt;p&gt;It's a relatively small detail, but I like having a consistent environment rather than every tool looking completely different.&lt;/p&gt;

&lt;h2&gt;
  
  
  A little more attention to Git
&lt;/h2&gt;

&lt;p&gt;My Git configuration has also grown beyond the basic aliases.&lt;/p&gt;

&lt;p&gt;I have shortcuts for common commands like &lt;code&gt;status&lt;/code&gt;, &lt;code&gt;log&lt;/code&gt;, &lt;code&gt;commit&lt;/code&gt;, and &lt;code&gt;diff&lt;/code&gt;. There are also a couple of settings that make working with repositories a little more convenient.&lt;/p&gt;

&lt;p&gt;For example:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight ini"&gt;&lt;code&gt;&lt;span class="k"&gt;[fetch]&lt;/span&gt;
    &lt;span class="na"&gt;prune&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="kc"&gt;true&lt;/span&gt;

&lt;span class="k"&gt;[rerere]&lt;/span&gt;
    &lt;span class="na"&gt;enabled&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="kc"&gt;true&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Fetch pruning automatically removes stale remote-tracking references when fetching.&lt;/p&gt;

&lt;p&gt;Meanwhile, &lt;code&gt;rerere&lt;/code&gt; allows Git to remember how I've resolved previous merge conflicts and reuse those resolutions when it encounters the same conflicts again.&lt;/p&gt;

&lt;p&gt;I also use the GitHub CLI as my credential helper, so I don't have to manage separate GitHub credentials manually.&lt;/p&gt;

&lt;p&gt;Nothing particularly groundbreaking, but these are the kinds of small improvements that add up over time.&lt;/p&gt;

&lt;h2&gt;
  
  
  Neovim gets its own repository
&lt;/h2&gt;

&lt;p&gt;Another change worth mentioning is how I manage my Neovim configuration.&lt;/p&gt;

&lt;p&gt;Previously, it was part of the same dotfiles repository. I've since moved it into its own repository:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://github.com/luxcih/nvim" rel="noopener noreferrer"&gt;github.com/luxcih/nvim&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;I wanted to keep it independently maintainable while still having it included in my overall setup.&lt;/p&gt;

&lt;p&gt;Fortunately, chezmoi supports external repositories through &lt;code&gt;.chezmoiexternal.toml&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;Here's how I configure mine:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight toml"&gt;&lt;code&gt;&lt;span class="k"&gt;[".config/nvim"]&lt;/span&gt;
    &lt;span class="na"&gt;type&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;"git-repo"&lt;/span&gt;
    &lt;span class="na"&gt;url&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;"https://github.com/luxcih/nvim.git"&lt;/span&gt;
    &lt;span class="na"&gt;refreshPeriod&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;"168h"&lt;/span&gt;

&lt;span class="k"&gt;[".config/nvim".pull]&lt;/span&gt;
    &lt;span class="na"&gt;args&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"--ff-only"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This tells chezmoi to manage my Neovim configuration as an external Git repository.&lt;/p&gt;

&lt;p&gt;The refresh period is set to 168 hours (one week), and pulling uses &lt;code&gt;--ff-only&lt;/code&gt; to avoid creating merge commits when updating it.&lt;/p&gt;

&lt;p&gt;This keeps the two repositories independent without having to manually clone and maintain Neovim separately on every setup.&lt;/p&gt;

&lt;h2&gt;
  
  
  What's next?
&lt;/h2&gt;

&lt;p&gt;Looking back at my previous setup, the changes aren't necessarily about having more tools or a more complicated configuration.&lt;/p&gt;

&lt;p&gt;It's more about finding a workflow that makes sense for how I actually work.&lt;/p&gt;

&lt;p&gt;I still want my dotfiles to be easy to maintain, reproducible, and reasonably simple. There's no point in adding complexity just for the sake of it.&lt;/p&gt;

&lt;p&gt;My setup will probably continue to change as I discover new tools, experiment with different workflows, and figure out better ways to organize things.&lt;/p&gt;

&lt;p&gt;For now, that's where my dotfiles stand.&lt;/p&gt;

&lt;p&gt;You can check out the current repository here:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&lt;a href="https://github.com/luxcih/dotfiles" rel="noopener noreferrer"&gt;github.com/luxcih/dotfiles&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;And here's the original post from 2024, for a little comparison:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://dev.to/luxcih/dotfiles-managing-with-gnu-stow-and-git-5100"&gt;Managing Dotfiles with GNU Stow and Git&lt;/a&gt;&lt;/p&gt;

</description>
      <category>chezmoi</category>
      <category>linux</category>
      <category>dotfiles</category>
      <category>productivity</category>
    </item>
    <item>
      <title>Organize your Dotfiles - with GNU Stow and Git</title>
      <dc:creator>Luxcih</dc:creator>
      <pubDate>Mon, 15 Apr 2024 08:38:15 +0000</pubDate>
      <link>https://dev.to/luxcih/dotfiles-managing-with-gnu-stow-and-git-5100</link>
      <guid>https://dev.to/luxcih/dotfiles-managing-with-gnu-stow-and-git-5100</guid>
      <description>&lt;h2&gt;
  
  
  Introduction
&lt;/h2&gt;

&lt;p&gt;If you didn't know, "dotfiles" are those little files hidden in your system that make everything run just the way you like. They're those little configuration files that make your setup feel just right. But managing them can be a headache.&lt;/p&gt;

&lt;h2&gt;
  
  
  GNU Stow
&lt;/h2&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;a href="https://www.gnu.org/software/stow/" rel="noopener noreferrer"&gt;https://www.gnu.org/software/stow/&lt;/a&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Thankfully, there's a magical tool: &lt;strong&gt;GNU Stow&lt;/strong&gt;. It's a powerful symlink farm manager, don't worry if it sounds like something out of a tech wizard's spellbook. Basically, it helps you organize your dotfiles without cluttering up your system. Think of it as your personal butler for keeping things tidy in your digital home.&lt;/p&gt;

&lt;h2&gt;
  
  
  Git
&lt;/h2&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;a href="https://git-scm.com/" rel="noopener noreferrer"&gt;https://git-scm.com/&lt;/a&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Now, let's talk about Git. If you're a developer and haven't heard of Git, well, you might be living under a rock. It is like that friend who always remembers everything you've ever said or done, but in a good way. It tracks changes to your files over time, making it a perfect companion for version control.&lt;/p&gt;

&lt;h2&gt;
  
  
  Getting Started
&lt;/h2&gt;

&lt;p&gt;Alright, enough talk about the tools, let's dive into action!&lt;/p&gt;

&lt;h3&gt;
  
  
  Installation
&lt;/h3&gt;

&lt;p&gt;Just fire up your terminal and use your favorite package manager to install these tools.&lt;/p&gt;

&lt;p&gt;I use Arch BTW, so I'll install them using pacman:&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="nv"&gt;$ &lt;/span&gt;&lt;span class="nb"&gt;sudo &lt;/span&gt;pacman &lt;span class="nt"&gt;-S&lt;/span&gt; git stow
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;For those on Debian-based systems like Ubuntu, it should be:&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="nv"&gt;$ &lt;/span&gt;&lt;span class="nb"&gt;sudo &lt;/span&gt;apt &lt;span class="nb"&gt;install &lt;/span&gt;git stow
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Setting up your Dotfiles
&lt;/h3&gt;

&lt;p&gt;Now that we've got the tools ready, let's organize our dotfiles into a directory. You can keep them wherever you want, but I like to have a dedicated folder in my home directory:&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="nv"&gt;$ &lt;/span&gt;&lt;span class="nb"&gt;mkdir&lt;/span&gt; ~/.dotfiles
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Next, start moving your dotfiles into this directory. For example, if you want to manage your &lt;code&gt;.bashrc&lt;/code&gt;, &lt;code&gt;.vimrc&lt;/code&gt;, and &lt;code&gt;.gitconfig&lt;/code&gt;, you'd do something like this:&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="nv"&gt;$ &lt;/span&gt;&lt;span class="nb"&gt;mv&lt;/span&gt; ~/.bashrc ~/.dotfiles
&lt;span class="nv"&gt;$ &lt;/span&gt;&lt;span class="nb"&gt;mv&lt;/span&gt; ~/.vimrc ~/.dotfiles
&lt;span class="nv"&gt;$ &lt;/span&gt;&lt;span class="nb"&gt;mv&lt;/span&gt; ~/.gitconfig ~/.dotfiles
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Now, this is where the magic happens. We'll use GNU Stow to manage these dotfiles. Navigate to your dotfiles directory and use Stow to symlink them back to your home directory:&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="nv"&gt;$ &lt;/span&gt;&lt;span class="nb"&gt;cd&lt;/span&gt; ~/.dotfiles
&lt;span class="nv"&gt;$ &lt;/span&gt;stow &lt;span class="nb"&gt;.&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;While there are various ways to utilize Stow for this purpose, I'll share the method I find most straightforward: &lt;code&gt;stow .&lt;/code&gt; (Yep, just a dot).&lt;/p&gt;

&lt;p&gt;This might seem simple, almost too simple. This command tells Stow to symlink all the files and directories in the current directory (&lt;code&gt;~/.dotfiles&lt;/code&gt;) back to your home directory, neatly organizing them as if they were originally there.&lt;/p&gt;

&lt;p&gt;There are indeed other ways to manage your dotfiles with Stow, I stick to the trusty &lt;code&gt;stow .&lt;/code&gt; method for its simplicity, flexibility, and cleanliness.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;If you're curious and want to learn more about GNU Stow, the manual page is a treasure trove of information:&lt;/p&gt;


&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nv"&gt;$ &lt;/span&gt;man stow
&lt;/code&gt;&lt;/pre&gt;

&lt;/blockquote&gt;

&lt;h3&gt;
  
  
  Version Control with Git
&lt;/h3&gt;

&lt;p&gt;Now let's make sure we're keeping track of changes to our dotfiles using Git. Navigate to your dotfiles directory and initialize a Git repository:&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="nv"&gt;$ &lt;/span&gt;&lt;span class="nb"&gt;cd&lt;/span&gt; ~/.dotfiles
&lt;span class="nv"&gt;$ &lt;/span&gt;git init
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Now that Git is watching over our dotfiles like a diligent guardian, let's make our first commit:&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="nv"&gt;$ &lt;/span&gt;git add &lt;span class="nb"&gt;.&lt;/span&gt;
&lt;span class="nv"&gt;$ &lt;/span&gt;git commit &lt;span class="nt"&gt;-m&lt;/span&gt; &lt;span class="s2"&gt;"Initial commit"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Now that we've got Git on board, you can optionally publish your dotfiles repository to platforms like GitHub, GitLab, or Bitbucket. This not only serves as a backup but also allows for synchronization across multiple devices.&lt;/p&gt;

&lt;h2&gt;
  
  
  Conclusion
&lt;/h2&gt;

&lt;blockquote&gt;
&lt;p&gt;You can find my personal dotfiles repo here:&lt;br&gt;
&lt;a href="https://github.com/luxcih/dotfiles" rel="noopener noreferrer"&gt;https://github.com/luxcih/dotfiles&lt;/a&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Alright, so now you've got your dotfiles organized like a boss and Git keeping an eye on them. Managing your dotfiles doesn't have to be a headache anymore.&lt;/p&gt;

&lt;p&gt;But remember, this is just the beginning of your dotfiles journey. There are countless ways to further enhance and customize your setup.&lt;/p&gt;

</description>
      <category>dotfiles</category>
      <category>linux</category>
      <category>productivity</category>
      <category>configuration</category>
    </item>
    <item>
      <title>Say good bye to cd and hello Zoxide - the better and smarter cd command!</title>
      <dc:creator>Luxcih</dc:creator>
      <pubDate>Sun, 14 Apr 2024 08:40:22 +0000</pubDate>
      <link>https://dev.to/luxcih/say-good-bye-to-cd-and-hello-zoxide-the-better-and-smarter-cd-command-828</link>
      <guid>https://dev.to/luxcih/say-good-bye-to-cd-and-hello-zoxide-the-better-and-smarter-cd-command-828</guid>
      <description>&lt;h2&gt;
  
  
  Introduction
&lt;/h2&gt;

&lt;p&gt;If you're like me, you're constantly zipping around directories in your terminal, trying to keep up with your coding projects, side hustles, and random tech adventures. But let's be real for a second: the old cd command? It's feels like trying to navigate a maze blindfolded.&lt;/p&gt;

&lt;h2&gt;
  
  
  Zoxide
&lt;/h2&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;a href="https://github.com/ajeetdsouza/zoxide" rel="noopener noreferrer"&gt;https://github.com/ajeetdsouza/zoxide&lt;/a&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;So, I stumbled upon this game-changing tool that's about to revolutionize the way you navigate your terminal: &lt;strong&gt;Zoxide&lt;/strong&gt;. It works like magic in your terminal. It keeps track of the directories you frequently visit and ranks them based on your usage patterns. So, when you need to navigate to a directory, instead of wracking your brain trying to recall its exact path, you simply type &lt;code&gt;z &amp;lt;directory_name&amp;gt;&lt;/code&gt; and voila! Zoxide intelligently takes you there in an instant.&lt;/p&gt;

&lt;h2&gt;
  
  
  Installation
&lt;/h2&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;a href="https://github.com/ajeetdsouza/zoxide#installation" rel="noopener noreferrer"&gt;https://github.com/ajeetdsouza/zoxide#installation&lt;/a&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h3&gt;
  
  
  Install binary
&lt;/h3&gt;

&lt;p&gt;Installing Zoxide is a breeze. You can grab it from your favorite package manager or build it from source - whatever floats your boat.&lt;/p&gt;

&lt;p&gt;The recommended way to install zoxide is via the install script:&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="nv"&gt;$ &lt;/span&gt;curl &lt;span class="nt"&gt;-sS&lt;/span&gt; https://raw.githubusercontent.com/ajeetdsouza/zoxide/main/install.sh | bash
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;I use Arch BTW, so I'll install it using pacman:&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="nv"&gt;$ &lt;/span&gt;&lt;span class="nb"&gt;sudo &lt;/span&gt;pacman &lt;span class="nt"&gt;-S&lt;/span&gt; zoxide
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Setup zoxide
&lt;/h3&gt;

&lt;p&gt;Once installed, just add a tiny snippet to the end of your shell configuration file (like .bashrc or .zshrc), and you're good to go!&lt;/p&gt;

&lt;p&gt;For bash (&lt;code&gt;~/.bashrc&lt;/code&gt;):&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;eval&lt;/span&gt; &lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="si"&gt;$(&lt;/span&gt;zoxide init bash&lt;span class="si"&gt;)&lt;/span&gt;&lt;span class="s2"&gt;"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;For fish (&lt;code&gt;~/.config/fish/config.fish&lt;/code&gt;):&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;zoxide init fish | source
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;For zsh (&lt;code&gt;~/.zshrc&lt;/code&gt;):&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;eval&lt;/span&gt; &lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="si"&gt;$(&lt;/span&gt;zoxide init zsh&lt;span class="si"&gt;)&lt;/span&gt;&lt;span class="s2"&gt;"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Usage
&lt;/h2&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;a href="https://github.com/ajeetdsouza/zoxide/wiki/Algorithm" rel="noopener noreferrer"&gt;https://github.com/ajeetdsouza/zoxide/wiki/Algorithm&lt;/a&gt;&lt;br&gt;
You can find out more about Zoxide on its man page after installed:&lt;/p&gt;


&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nv"&gt;$ &lt;/span&gt;man zoxide
&lt;/code&gt;&lt;/pre&gt;

&lt;/blockquote&gt;

&lt;p&gt;To unlock its full potential, it's a good idea to train it. Training Zoxide involves simply using your terminal as you normally would for a bit, letting Zoxide observe your directory navigation patterns. Try navigating to your projects with Zoxide.&lt;/p&gt;

&lt;p&gt;After training, using Zoxide is as easy as typing &lt;code&gt;z &amp;lt;directory_name&amp;gt;&lt;/code&gt; to quickly navigate to frequently accessed directories without the full path!&lt;/p&gt;

&lt;h2&gt;
  
  
  Rebinding
&lt;/h2&gt;

&lt;p&gt;Now, Zoxide is incredible, no doubt about it. But what if you're a creature of habit, like me, who's been typing cd for eons?&lt;/p&gt;

&lt;p&gt;You can easily rebind the &lt;code&gt;z&lt;/code&gt; command to &lt;code&gt;cd&lt;/code&gt;, so you don't have to mess with your muscle memory:&lt;/p&gt;

&lt;p&gt;For bash (&lt;code&gt;~/.bashrc&lt;/code&gt;):&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;eval&lt;/span&gt; &lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="si"&gt;$(&lt;/span&gt;zoxide init &lt;span class="nt"&gt;--cmd&lt;/span&gt; &lt;span class="nb"&gt;cd &lt;/span&gt;bash&lt;span class="si"&gt;)&lt;/span&gt;&lt;span class="s2"&gt;"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;For fish (&lt;code&gt;~/.config/fish/config.fish&lt;/code&gt;):&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;zoxide init --cmd cd fish | source
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;For zsh (&lt;code&gt;~/.zshrc&lt;/code&gt;):&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;eval&lt;/span&gt; &lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="si"&gt;$(&lt;/span&gt;zoxide init &lt;span class="nt"&gt;--cmd&lt;/span&gt; &lt;span class="nb"&gt;cd &lt;/span&gt;zsh&lt;span class="si"&gt;)&lt;/span&gt;&lt;span class="s2"&gt;"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Conclusion
&lt;/h2&gt;

&lt;p&gt;In short, Zoxide is your terminal's new best friend, guiding you effortlessly through directories with just a few keystrokes. Say goodbye to aimless navigation and hello to smooth sailing with Zoxide!&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;PS: This is my first blog, so your feedback means the world to me!&lt;/p&gt;
&lt;/blockquote&gt;

</description>
      <category>linux</category>
      <category>cli</category>
      <category>productivity</category>
      <category>terminal</category>
    </item>
  </channel>
</rss>
