<?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: Sean Marchetti</title>
    <description>The latest articles on DEV Community by Sean Marchetti (@smarchetti).</description>
    <link>https://dev.to/smarchetti</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.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F342883%2F5cbf9285-39bd-4a9e-97cb-c50bed462c39.jpeg</url>
      <title>DEV Community: Sean Marchetti</title>
      <link>https://dev.to/smarchetti</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/smarchetti"/>
    <language>en</language>
    <item>
      <title> Styling zsh Completions</title>
      <dc:creator>Sean Marchetti</dc:creator>
      <pubDate>Thu, 27 Feb 2020 17:42:01 +0000</pubDate>
      <link>https://dev.to/smarchetti/styling-zsh-completions-4a91</link>
      <guid>https://dev.to/smarchetti/styling-zsh-completions-4a91</guid>
      <description>&lt;p&gt;I spend a good portion of my time in the terminal, so I recently decided to learn how to configure it. I use &lt;code&gt;zsh&lt;/code&gt;, which is extremely customizable, and there are plenty of tutorials out there to help you get started. One of the best parts of &lt;code&gt;zsh&lt;/code&gt; is its completion system. Typing a command and hitting tab will show you it’s options and arguments.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--BI4NAWd8--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/gmhbxcwmjlhnvxhw5pko.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--BI4NAWd8--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/gmhbxcwmjlhnvxhw5pko.png" alt="Before"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The default styling is functional, but it’s not pretty, and we can fix it. Adding the following lines to your &lt;code&gt;.zshrc&lt;/code&gt; produces a much cleaner result.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight"&gt;&lt;pre class="highlight shell"&gt;&lt;code&gt;zstyle &lt;span class="s1"&gt;':completion:\*'&lt;/span&gt; menu &lt;span class="k"&gt;select
&lt;/span&gt;zstyle &lt;span class="s1"&gt;':completion:\*:descriptions'&lt;/span&gt; format &lt;span class="s1"&gt;$'&lt;/span&gt;&lt;span class="se"&gt;\\&lt;/span&gt;&lt;span class="s1"&gt;n%F{yellow}%U%B%d%b%u%f&lt;/span&gt;&lt;span class="se"&gt;\\&lt;/span&gt;&lt;span class="s1"&gt;n'&lt;/span&gt;
zstyle &lt;span class="s1"&gt;':completion:\*'&lt;/span&gt; group-name &lt;span class="s1"&gt;''&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;



&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--mZ5F_c0Q--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/1akczpxeeas1ff7rvo7k.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--mZ5F_c0Q--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/1akczpxeeas1ff7rvo7k.png" alt="After"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Of course, there are many things you can tweak with &lt;code&gt;zstyle&lt;/code&gt; and I encourage you to check it out by using the completion system.&lt;/p&gt;

</description>
      <category>zsh</category>
      <category>terminal</category>
    </item>
  </channel>
</rss>
