<?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: Mx Panf</title>
    <description>The latest articles on DEV Community by Mx Panf (@mxpanf).</description>
    <link>https://dev.to/mxpanf</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%2F520706%2Fd9a9d4d2-b94f-4549-912e-6098227c98a7.jpg</url>
      <title>DEV Community: Mx Panf</title>
      <link>https://dev.to/mxpanf</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/mxpanf"/>
    <language>en</language>
    <item>
      <title>Best Terminal Setup | ZSH</title>
      <dc:creator>Mx Panf</dc:creator>
      <pubDate>Fri, 18 Dec 2020 12:43:56 +0000</pubDate>
      <link>https://dev.to/mxpanf/best-terminal-setup-zsh-56p8</link>
      <guid>https://dev.to/mxpanf/best-terminal-setup-zsh-56p8</guid>
      <description>&lt;p&gt;I recently tried new terminal configuration with &lt;a href="https://en.wikipedia.org/wiki/Z_shell" rel="noopener noreferrer"&gt;ZSH&lt;/a&gt; shell, &lt;a href="https://ohmyz.sh/" rel="noopener noreferrer"&gt;Oh-My-Zsh&lt;/a&gt; framework and &lt;a href="https://github.com/romkatv/powerlevel10k" rel="noopener noreferrer"&gt;Powerlevel10k&lt;/a&gt; theme on &lt;a href="https://terminator-gtk3.readthedocs.io/en/latest/" rel="noopener noreferrer"&gt;Terminator&lt;/a&gt; terminal emulator. &lt;br&gt;
So, I want to share it with you.&lt;br&gt;
Go to shell setup part &amp;gt;&lt;/p&gt;




&lt;h1&gt;
  
  
  What we will setup?
&lt;/h1&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Terminator&lt;/strong&gt; terminal to support splitting the terminal screen vertically and horizontally into multiple windows. Extremely useful when working with distributed systems like blockchain.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;ZSH&lt;/strong&gt; a Unix shell that can be used as an interactive login shell and as a command interpreter for shell scripting with many plugins and themes.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Oh-My-Zsh&lt;/strong&gt; open source, community-driven framework for managing Zsh configuration. It comes bundled with thousands of helpful functions, helpers, plugins &amp;amp; themes.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Powerlevel10k&lt;/strong&gt; theme for ZSH. It looks better in a bundle with Oh-My-Zsh.&lt;/li&gt;
&lt;/ul&gt;
&lt;h1&gt;
  
  
  Installation
&lt;/h1&gt;

&lt;p&gt;I do everything on Ubuntu 20.10, but there will be no difference on RHEL or Arch except for package manager.&lt;/p&gt;
&lt;h2&gt;
  
  
  Install the Terminator
&lt;/h2&gt;

&lt;blockquote&gt;
&lt;p&gt;Open terminal with (&lt;code&gt;Ctrl + Alt + T&lt;/code&gt;) or find in Apps.&lt;/p&gt;
&lt;/blockquote&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; &lt;span class="nt"&gt;-y&lt;/span&gt; terminator


&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;
&lt;p&gt;Open it.&lt;br&gt;
&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2F1s1r73obqwykq431f9is.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2F1s1r73obqwykq431f9is.png" alt="Terminator"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a&gt;&lt;/a&gt;&lt;/p&gt;
&lt;h2&gt;
  
  
  Install ZSH
&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; &lt;span class="nt"&gt;-y&lt;/span&gt; zsh


&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;
&lt;blockquote&gt;
&lt;p&gt;To make it your default shell run:&lt;br&gt;
&lt;code&gt;chsh -s $(which zsh)&lt;/code&gt; in command line&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2F281l8z2fg5mcpuba9zas.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2F281l8z2fg5mcpuba9zas.png" alt="zsh"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Other ways of installation you can find in &lt;a href="https://github.com/ohmyzsh/ohmyzsh/wiki/Installing-ZSH" rel="noopener noreferrer"&gt;official GitHub repo&lt;/a&gt;&lt;/p&gt;
&lt;h3&gt;
  
  
  Oh-My-Zsh framework
&lt;/h3&gt;

&lt;p&gt;Install OMZ with shell script, which will setup default themes and plugins.&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;

curl &lt;span class="nt"&gt;-L&lt;/span&gt; https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh | sh


&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;
&lt;h3&gt;
  
  
  PowerLevel10k Theme
&lt;/h3&gt;

&lt;p&gt;Install &lt;a href="https://github.com/romkatv/powerlevel10k#meslo-nerd-font-patched-for-powerlevel10k" rel="noopener noreferrer"&gt;special font&lt;/a&gt; for better display of icons. I recommend &lt;a href="https://github.com/romkatv/powerlevel10k-media/raw/master/MesloLGS%20NF%20Regular.ttf" rel="noopener noreferrer"&gt;MesloLGS NF Regular.ttf&lt;/a&gt;. After fonts proceed to theme.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fi32jdfhedaapk42wxzic.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fi32jdfhedaapk42wxzic.gif" alt="Font install"&gt;&lt;/a&gt;&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;

git clone &lt;span class="nt"&gt;--depth&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;1 https://github.com/romkatv/powerlevel10k.git ~/powerlevel10k
&lt;span class="nb"&gt;sudo echo&lt;/span&gt; &lt;span class="s1"&gt;'source ~/powerlevel10k/powerlevel10k.zsh-theme'&lt;/span&gt; &lt;span class="o"&gt;&amp;gt;&amp;gt;!&lt;/span&gt; ~/.zshrc


&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;
&lt;blockquote&gt;
&lt;p&gt;If you don't have curl &amp;amp; git =&amp;gt; &lt;code&gt;sudo apt install -y curl git&lt;/code&gt;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;h4&gt;
  
  
  Configure colors, spaces &amp;amp; other features
&lt;/h4&gt;

&lt;p&gt;Rerun ZSH &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;source&lt;/span&gt; ~/.zshrc


&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;
&lt;p&gt;and configure it as you wish.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fa6u2bdlihixzc07e28ja.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fa6u2bdlihixzc07e28ja.gif" alt="p10k"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;To reconfigure theme, use &lt;code&gt;p10k configure&lt;/code&gt; command.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;h4&gt;
  
  
  Default plugins
&lt;/h4&gt;

&lt;p&gt;You can enable IP, battery and other default plugins editing &lt;code&gt;.p10k.zsh&lt;/code&gt; file.&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;

nano &lt;span class="nv"&gt;$HOME&lt;/span&gt;/.p10k.zsh


&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;
&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Ft8jv2p7oqe1sk4x6t12m.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Ft8jv2p7oqe1sk4x6t12m.png" alt="defplugins"&gt;&lt;/a&gt;&lt;/p&gt;
&lt;h4&gt;
  
  
  External plugins
&lt;/h4&gt;
&lt;h5&gt;
  
  
  Syntax-highlighting
&lt;/h5&gt;

&lt;blockquote&gt;
&lt;p&gt;For more information visit &lt;a href="https://github.com/zsh-users/zsh-syntax-highlighting" rel="noopener noreferrer"&gt;official repo&lt;/a&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Clone plugin to &lt;code&gt;$ZSH_CUSTOM/plugins&lt;/code&gt;&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;

git clone https://github.com/zsh-users/zsh-syntax-highlighting.git &lt;span class="k"&gt;${&lt;/span&gt;&lt;span class="nv"&gt;ZSH_CUSTOM&lt;/span&gt;&lt;span class="k"&gt;:-&lt;/span&gt;&lt;span class="p"&gt;~/.oh-my-zsh/custom&lt;/span&gt;&lt;span class="k"&gt;}&lt;/span&gt;/plugins/zsh-syntax-highlighting


&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;
&lt;p&gt;Then change &lt;code&gt;~/.zshrc&lt;/code&gt; file&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;

nano &lt;span class="nv"&gt;$HOME&lt;/span&gt;/.zshrc


&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;
&lt;p&gt;and near to the End of the file find string &lt;code&gt;plugins&lt;/code&gt;. Separated by a space add name of plugin name &lt;code&gt;zsh-syntax-highlighting&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fk08jvzw9sh7crb8p2him.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fk08jvzw9sh7crb8p2him.png" alt="syntax"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Rerun shell with this command: &lt;code&gt;zsh&lt;/code&gt;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;h5&gt;
  
  
  Autosuggestions
&lt;/h5&gt;

&lt;blockquote&gt;
&lt;p&gt;For more information visit &lt;a href="https://github.com/zsh-users/zsh-autosuggestions" rel="noopener noreferrer"&gt;official repo&lt;/a&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Clone plugin to &lt;code&gt;$ZSH_CUSTOM/plugins&lt;/code&gt;&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;

git clone https://github.com/zsh-users/zsh-autosuggestions &lt;span class="k"&gt;${&lt;/span&gt;&lt;span class="nv"&gt;ZSH_CUSTOM&lt;/span&gt;&lt;span class="k"&gt;:-&lt;/span&gt;&lt;span class="p"&gt;~/.oh-my-zsh/custom&lt;/span&gt;&lt;span class="k"&gt;}&lt;/span&gt;/plugins/zsh-autosuggestions


&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;
&lt;p&gt;Then change &lt;code&gt;~/.zshrc&lt;/code&gt; file&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;

nano &lt;span class="nv"&gt;$HOME&lt;/span&gt;/.zshrc


&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;
&lt;p&gt;and near to the End of the file find string &lt;code&gt;plugins&lt;/code&gt;. Separated by a space add name of plugin name &lt;code&gt;zsh-autosuggestions&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Ft3hg5utht9jo05g9xmue.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Ft3hg5utht9jo05g9xmue.png" alt="autosug"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Rerun shell with this command: &lt;code&gt;zsh&lt;/code&gt;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;h1&gt;
  
  
  That's all!
&lt;/h1&gt;

&lt;p&gt;After all these actions, you will get something like this:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2F9oqpycgpx4hxygcm5cr6.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2F9oqpycgpx4hxygcm5cr6.gif" alt="total"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Give some feedback and share screenshots of your terminal themes! &lt;/p&gt;



&lt;p&gt;I was inspired by these articles:&lt;br&gt;
&lt;/p&gt;
&lt;div class="ltag__link"&gt;
  &lt;a href="/web3coach" class="ltag__link__link"&gt;
    &lt;div class="ltag__link__pic"&gt;
      &lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F35892%2F9710a8eb-0fb6-4f64-a983-4a39dca67046.jpg" alt="web3coach"&gt;
    &lt;/div&gt;
  &lt;/a&gt;
  &lt;a href="/web3coach/best-terminal-setup-terminator-zsh-powerlevel10k-7pl" class="ltag__link__link"&gt;
    &lt;div class="ltag__link__content"&gt;
      &lt;h2&gt;Best Terminal Setup - Terminator + ZSH + Powerlevel10k&lt;/h2&gt;
      &lt;h3&gt;Lukas Lukac ・ Jul 7 '20&lt;/h3&gt;
      &lt;div class="ltag__link__taglist"&gt;
        &lt;span class="ltag__link__tag"&gt;#linux&lt;/span&gt;
      &lt;/div&gt;
    &lt;/div&gt;
  &lt;/a&gt;
&lt;/div&gt;
&lt;br&gt;
&lt;div class="ltag__link"&gt;
  &lt;a href="/deepu105" class="ltag__link__link"&gt;
    &lt;div class="ltag__link__pic"&gt;
      &lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F178939%2F38a82d99-3a0c-4a47-84fc-76fff3144cda.png" alt="deepu105"&gt;
    &lt;/div&gt;
  &lt;/a&gt;
  &lt;a href="/deepu105/configure-a-beautiful-terminal-on-unix-with-zsh-4mcb" class="ltag__link__link"&gt;
    &lt;div class="ltag__link__content"&gt;
      &lt;h2&gt;Configure a beautiful terminal on Unix with Zsh&lt;/h2&gt;
      &lt;h3&gt;Deepu K Sasidharan ・ Jul 1 '19&lt;/h3&gt;
      &lt;div class="ltag__link__taglist"&gt;
        &lt;span class="ltag__link__tag"&gt;#linux&lt;/span&gt;
        &lt;span class="ltag__link__tag"&gt;#terminal&lt;/span&gt;
        &lt;span class="ltag__link__tag"&gt;#ohmyzsh&lt;/span&gt;
        &lt;span class="ltag__link__tag"&gt;#zsh&lt;/span&gt;
      &lt;/div&gt;
    &lt;/div&gt;
  &lt;/a&gt;
&lt;/div&gt;


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