<?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: Roman</title>
    <description>The latest articles on DEV Community by Roman (@zeromeroz).</description>
    <link>https://dev.to/zeromeroz</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%2F307091%2F1bf85f63-e45c-4716-b74d-2c1688fff6a5.jpg</url>
      <title>DEV Community: Roman</title>
      <link>https://dev.to/zeromeroz</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/zeromeroz"/>
    <language>en</language>
    <item>
      <title>Setting up ZSH and Oh-my-ZHS with autocomplete plugins</title>
      <dc:creator>Roman</dc:creator>
      <pubDate>Tue, 14 Feb 2023 14:33:37 +0000</pubDate>
      <link>https://dev.to/zeromeroz/setting-up-zsh-and-oh-my-zhs-with-autocomplete-plugins-1nml</link>
      <guid>https://dev.to/zeromeroz/setting-up-zsh-and-oh-my-zhs-with-autocomplete-plugins-1nml</guid>
      <description>&lt;p&gt;In this post I'll provide you with step-by-step tutorial on how to set up oh-my-zsh in your terminal with &lt;strong&gt;&lt;em&gt;in my opinion&lt;/em&gt;&lt;/strong&gt;, essential plugins.&lt;br&gt;
First things first:&lt;br&gt;
&lt;strong&gt;If you run Linux you can use your packet manager to install all neccesarry packages and jump straight to configuration section.&lt;/strong&gt;&lt;br&gt;
Instead of &lt;code&gt;apt install&lt;/code&gt; use your packet manager commands.&lt;/p&gt;
&lt;h2&gt;
  
  
  Linux install using packet manager
&lt;/h2&gt;


&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nb"&gt;sudo &lt;/span&gt;apt &lt;span class="nb"&gt;install &lt;/span&gt;zsh-autosuggestions zsh-syntax-highlighting zsh zsh-autocomplete
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;h2&gt;
  
  
  Terminal install using Git and sh
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Install &lt;a href="https://ohmyz.sh/"&gt;Oh my ZSH&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;sh &lt;span class="nt"&gt;-c&lt;/span&gt; &lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="si"&gt;$(&lt;/span&gt;curl &lt;span class="nt"&gt;-fsSL&lt;/span&gt; https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh&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;ul&gt;
&lt;li&gt;
&lt;p&gt;Install plugins&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;a href="https://github.com/zsh-users/zsh-autosuggestions"&gt;autosuggesions plugin&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;code&gt;git clone https://github.com/zsh-users/zsh-autosuggestions.git $ZSH_CUSTOM/plugins/zsh-autosuggestions&lt;/code&gt;&lt;br&gt;
&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;a href="https://github.com/zsh-users/zsh-syntax-highlighting"&gt;zsh-syntax-highlighting plugin&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;code&gt;git clone https://github.com/zsh-users/zsh-syntax-highlighting.git $ZSH_CUSTOM/plugins/zsh-syntax-highlighting&lt;/code&gt;&lt;br&gt;
&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;a href="(https://github.com/zdharma/fast-syntax-highlighting)"&gt;zsh-fast-syntax-highlighting plugin&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;code&gt;git clone https://github.com/zdharma-continuum/fast-syntax-highlighting.git ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/plugins/fast-syntax-highlighting&lt;/code&gt;&lt;br&gt;
&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;a href="https://github.com/marlonrichert/zsh-autocomplete"&gt;zsh-autocomplete plugin&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;code&gt;git clone --depth 1 -- https://github.com/marlonrichert/zsh-autocomplete.git $ZSH_CUSTOM/plugins/zsh-autocomplete&lt;/code&gt;&lt;br&gt;
&lt;/p&gt;


&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Configuration
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;Enable plugins by adding them to &lt;code&gt;.zshrc.&lt;/code&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Open .zshrc&lt;/li&gt;
&lt;li&gt;&lt;code&gt;nano ~/.zshrc&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;Find the line which says &lt;code&gt;plugins=(git)&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt; Replace that line with
&lt;/li&gt;
&lt;/ul&gt;


&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt; &lt;span class="nv"&gt;plugins&lt;/span&gt;&lt;span class="o"&gt;=(&lt;/span&gt;
  git
  zsh-autosuggestions
  zsh-syntax-highlighting
  fast-syntax-highlighting
  zsh-autocomplete
 &lt;span class="o"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Reload your environment to make changes work!&lt;/strong&gt;

&lt;ul&gt;
&lt;li&gt;&lt;code&gt;source ~/.zshrc&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;


&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Optional
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Enable cutom theme 

&lt;ul&gt;
&lt;li&gt;&lt;code&gt;nano ~/.zshrc&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;Find the &lt;code&gt;ZSH_THEME="robbyrussell"&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;Replace with &lt;code&gt;ZSH_THEME="alanpeabody"&lt;/code&gt;
&lt;/li&gt;
&lt;/ul&gt;


&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;You can find my fork of the file on &lt;a href="https://gist.github.com/zeromero-dev/b56f1bd10f20c0805a4d77197d416cbd#file-oh-my-zsh-with-zsh-autosuggestions-zsh-syntax-highlighting-zsh-fast-syntax-highlighting-and-zsh-autocomplete-md"&gt;Github Gists&lt;/a&gt;&lt;/p&gt;

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