{"id":6912,"date":"2020-09-10T22:49:47","date_gmt":"2020-09-10T19:49:47","guid":{"rendered":"https:\/\/kifarunix.com\/?p=6912"},"modified":"2024-03-14T22:58:29","modified_gmt":"2024-03-14T19:58:29","slug":"install-and-setup-zsh-and-oh-my-zsh-on-fedora-32","status":"publish","type":"post","link":"https:\/\/kifarunix.com\/install-and-setup-zsh-and-oh-my-zsh-on-fedora-32\/","title":{"rendered":"Install and Setup ZSH and Oh-My-Zsh on Fedora 32"},"content":{"rendered":"\n<p>In this tutorial, we are going to learn how to install and setup Zsh and Oh-my-Zsh on Fedora 32 desktop.<\/p>\n\n\n\n<p><a rel=\"noreferrer noopener\" href=\"http:\/\/zsh.sourceforge.net\/\" target=\"_blank\">Z shell<\/a>&nbsp;(ZSH) is a UNIX command interpreter (shell) that can be used as an interactive login shell and as a shell script command processor. It incorporates features of other shells such as Bash, tcsk, ksh but includes many enhancements. Some of the features include;<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Smart command TAB auto-completion<\/li>\n\n\n\n<li>Improved variable\/array handling<\/li>\n\n\n\n<li>Spelling correction<\/li>\n\n\n\n<li>Enables sharing of command history among all running shells<\/li>\n\n\n\n<li>Editing of multi-line commands in a single buffer<\/li>\n\n\n\n<li>It is highly customization<\/li>\n<\/ul>\n\n\n\n<p>Zsh configuration is managed by&nbsp;a delightful, open source and community-driven framework&nbsp;called&nbsp;<a href=\"https:\/\/github.com\/robbyrussell\/oh-my-zsh\" target=\"_blank\" rel=\"noreferrer noopener\"><strong>Oh My Zsh<\/strong><\/a>. Oh My Zsh comes bundled with a ton of functions, helpers, plugins and themes that can be used to spice your shell experience.<\/p>\n\n\n\n<div class=\"wp-block-rank-math-toc-block\" id=\"rank-math-toc\"><h2>Table of Contents<\/h2><nav><ul><li><a href=\"#installing-zsh-and-oh-my-zsh-on-fedora-32\">Installing ZSH and Oh-My-Zsh on Fedora 32<\/a><ul><li><a href=\"#run-system-update\">Run System Update<\/a><\/li><li><a href=\"#install-zsh-on-fedora-32\">Install ZSH on Fedora 32<\/a><\/li><li><a href=\"#configure-zsh-on-fedora-32\">Configure ZSH on Fedora 32<\/a><\/li><li><a href=\"#install-and-configure-oh-my-zsh-on-fedora-32\">Install and Configure Oh-my-Zsh on Fedora 32<\/a><ul><li><a href=\"#install-oh-my-zsh-on-fedora-32\">Install oh-my-zsh on Fedora 32<\/a><\/li><li><a href=\"#configure-oh-my-zsh-on-fedora-32\">Configure Oh-My-Zsh on Fedora 32<\/a><\/li><li><a href=\"#oh-my-zsh-theme-configuration\">Oh-My-Zsh Theme Configuration<\/a><\/li><li><a href=\"#how-to-use-multiple-zsh-themes\">How to use multiple ZSH themes <\/a><\/li><li><a href=\"#using-custom-oh-my-zsh-themes\">Using Custom Oh-My-ZSH Themes<\/a><\/li><li><a href=\"#install-powerlevel-10-k-oh-my-zsh-theme-on-fedora-32\">Install Powerlevel10k Oh-My-Zsh Theme on Fedora 32<\/a><\/li><li><a href=\"#download-and-install-powerlevel-10-k-oh-my-zsh-theme\">Download and Install Powerlevel10k Oh-My-Zsh Theme<\/a><\/li><\/ul><\/li><li><a href=\"#enabling-oh-my-zsh-plugins-on-fedora-32\">Enabling Oh-My-Zsh Plugins on Fedora 32<\/a><\/li><li><a href=\"#see-also\">See Also;<\/a><\/li><\/ul><\/li><\/ul><\/nav><\/div>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"installing-zsh-and-oh-my-zsh-on-fedora-32\">Installing ZSH and Oh-My-Zsh on Fedora 32<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"run-system-update\">Run System Update<\/h3>\n\n\n\n<p>To begin with, update your system packages.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>dnf update<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"install-zsh-on-fedora-32\"><a href=\"#install-zsh-on-fedora-32\">Install ZSH on Fedora 32<\/a><\/h3>\n\n\n\n<p>Zsh is available on the default Fedora repositories and hence, you can simply install it by executing the command below;<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>dnf install zsh<\/code><\/pre>\n\n\n\n<pre class=\"scroll-box\"><code>\n============================================================================================================================================================================\n Package                               Architecture                             Version                                      Repository                                Size\n============================================================================================================================================================================\nInstalling:\n zsh                                   x86_64                                   5.8-1.fc32                                   fedora                                   2.9 M\n\nTransaction Summary\n============================================================================================================================================================================\nInstall  1 Package\n\nTotal download size: 2.9 M\nInstalled size: 7.6 M\nIs this ok [y\/N]: y\n<\/pre><\/code>\n\n\n\n<p>Once the installation is done, you can check the version of the install ZSH by executing the command below;<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>zsh --version<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>zsh 5.8 (x86_64-redhat-linux-gnu)<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"configure-zsh-on-fedora-32\"><a href=\"#configure-zsh-fedora-32\">Configure ZSH on Fedora 32<\/a><\/h3>\n\n\n\n<p>To begin the configuration of ZSH on Fedora 32, you need to change your default shell interpreter to ZSH.<\/p>\n\n\n\n<p>For example, I am currently logged in to my Fedora 32 as user koromicha.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>[koromicha@fedora32 ~]$ <strong>whoami<\/strong><\/code><\/pre>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>koromicha<\/code><\/pre>\n\n\n\n<p>With my current shell being bash;<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>echo $SHELL<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>\/bin\/bash<\/code><\/pre>\n\n\n\n<p>Now, to change your shell, you can use <code><strong>usermod<\/strong><\/code> or <code><strong>chsh<\/strong><\/code> command. For example, to change the default shell for the user koromicha, simply run;<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>sudo usermod -s $(which zsh) koromicha<\/code><\/pre>\n\n\n\n<p>You can as well simply change your shell using <code><strong>chsh<\/strong><\/code> command.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>chsh -s $(which zsh)<\/code><\/pre>\n\n\n\n<p>Close the current terminal and open a new one to use your new shell. Upon opening a new terminal, the ZSH configuration wizard, similar to the one shown in the screenshot below, should pop up with some initial ZSH configuration options;<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"841\" height=\"482\" src=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2020\/09\/zsh-configs-fedora-32.png\" alt=\"Install and Setup ZSH and Oh-My-Zsh on Fedora 32\" class=\"wp-image-6918\" title=\"\" srcset=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2020\/09\/zsh-configs-fedora-32.png?v=1599764947 841w, https:\/\/kifarunix.com\/wp-content\/uploads\/2020\/09\/zsh-configs-fedora-32-768x440.png?v=1599764947 768w\" sizes=\"(max-width: 841px) 100vw, 841px\" \/><\/figure><\/div>\n\n\n<p>You can simply press <strong><code>q<\/code><\/strong> to quit the configuration wizard and proceed to configure ZSH on Fedora 32.<\/p>\n\n\n\n<p>After that, you should be able to see your shell prompt change from bash;<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>[koromicha@fedora32 ~]$<\/code><\/pre>\n\n\n\n<p>to ZSH;<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>[koromicha@fedora32]~%<\/code><\/pre>\n\n\n\n<p>See the trailing <strong><code>$<\/code><\/strong> for bash and <code>%<\/code> for zsh.<\/p>\n\n\n\n<p>If you can now check your default shell;<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>echo $SHELL<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>\/usr\/bin\/zsh<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"install-and-configure-oh-my-zsh-on-fedora-32\">Install and Configure Oh-my-Zsh on Fedora 32<\/h3>\n\n\n\n<p>We now have ZSH in place. But we want to go further and customize its appearance. To achieve this, we will use the <strong>oh-my-zsh<\/strong> framework.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"install-oh-my-zsh-on-fedora-32\"><a href=\"#install-oh-my-zsh-fedora-32\">Install oh-my-zsh on Fedora 32<\/a><\/h4>\n\n\n\n<p>Oh-my-Zsh framework can be installed by either using the&nbsp;<code>curl<\/code>&nbsp;or&nbsp;<code>wget<\/code>&nbsp;commands as shown below;<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>sudo dnf install wget curl<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>sh -c \"$(curl -fsSL https:\/\/raw.githubusercontent.com\/robbyrussell\/oh-my-zsh\/master\/tools\/install.sh)\"<\/code><\/pre>\n\n\n\n<p>or<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>sh -c \"$(wget https:\/\/raw.githubusercontent.com\/robbyrussell\/oh-my-zsh\/master\/tools\/install.sh -O -)\"<\/code><\/pre>\n\n\n\n<p>Upon installation, you will see yet another change in the appearance of your terminal.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"776\" height=\"482\" src=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2020\/09\/oh-my-zsh.png\" alt=\"\" class=\"wp-image-6919\" title=\"\" srcset=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2020\/09\/oh-my-zsh.png?v=1599765017 776w, https:\/\/kifarunix.com\/wp-content\/uploads\/2020\/09\/oh-my-zsh-768x477.png?v=1599765017 768w\" sizes=\"(max-width: 776px) 100vw, 776px\" \/><\/figure><\/div>\n\n\n<h4 class=\"wp-block-heading\" id=\"configure-oh-my-zsh-on-fedora-32\"><a href=\"#configure-oh-my-zsh-fedora-32\">Configure Oh-My-Zsh on Fedora 32<\/a><\/h4>\n\n\n\n<p>We now want the \u201coh-my-zsh\u201d feeling!!! So let us proceed and configure this.<\/p>\n\n\n\n<p>The Oh-my-Zsh configuration files are located under&nbsp;<code><strong>~\/.oh-my-zsh\/<\/strong><\/code>&nbsp;directory. Note that when you installed oh-my-zsh, it created the default ZSH configuration file under <code><strong>$HOME<\/strong><\/code>. The default configuraiton file for ZSH is <code><strong>~\/.zshrc<\/strong><\/code>. This is based on the <code><strong>~\/.oh-my-zsh\/templates\/zshrc.zsh-template<\/strong><\/code> template.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"oh-my-zsh-theme-configuration\"><a href=\"#oh-my-zsh-themes\">Oh-My-Zsh Theme Configuration<\/a><\/h4>\n\n\n\n<p>Oh-My-Zsh themes are located under&nbsp;<code><strong>~\/.oh-my-zsh\/themes\/<\/strong><\/code> folder.<\/p>\n\n\n\n<p>To change the ZSH themes, open the configuration file,&nbsp;<code><strong>~\/.zshrc<\/strong><\/code>, and set the value of&nbsp;<code><strong>ZSH_THEME=<\/strong><\/code>&nbsp;to the name of your preferred theme.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>vim $HOME\/.zshrc<\/code><\/pre>\n\n\n\n<p>If you check, <code><strong>robbyrussel<\/strong><\/code>&nbsp;is the default theme for ZSH.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>...\n# Set name of the theme to load --- if set to \"random\", it will\n# load a random theme each time oh-my-zsh is loaded, in which case,\n# to know which specific one was loaded, run: echo $RANDOM_THEME\n# See https:\/\/github.com\/ohmyzsh\/ohmyzsh\/wiki\/Themes\n<strong>ZSH_THEME=\"robbyrussell\"\n<\/strong>...<\/code><\/pre>\n\n\n\n<p>Therefore, to replace or change your ZSH theme, get the name of the theme from&nbsp;<code><strong>$HOME\/.oh-my-zsh\/themes\/<\/strong><\/code>&nbsp;folder and substitute the&nbsp;<strong><code>robbyrussell<\/code><\/strong>&nbsp;with the new name of your preferred theme.<\/p>\n\n\n\n<p>For example, to change the themes to&nbsp;<code>agnoster<\/code>&nbsp;theme,&nbsp;<code><strong>$HOME\/.oh-my-zsh\/themes\/agnoster.zsh-theme<\/strong><\/code>,<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code><strong>ZSH_THEME=\"agnoster\"<\/strong><\/code><\/pre>\n\n\n\n<p>Reload the&nbsp;<code><strong>~\/.zshrc<\/strong><\/code>&nbsp;to effect the changes everytime you make changes.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>source ~\/.zshrc<\/code><\/pre>\n\n\n\n<p>This is how&nbsp;<code>agnoster<\/code>&nbsp;theme changes the shell prompt to look like;<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"775\" height=\"149\" src=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2020\/09\/zsh-agnoster.png\" alt=\"\" class=\"wp-image-6920\" title=\"\" srcset=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2020\/09\/zsh-agnoster.png?v=1599765063 775w, https:\/\/kifarunix.com\/wp-content\/uploads\/2020\/09\/zsh-agnoster-768x148.png?v=1599765063 768w\" sizes=\"(max-width: 775px) 100vw, 775px\" \/><\/figure><\/div>\n\n\n<h4 class=\"wp-block-heading\" id=\"how-to-use-multiple-zsh-themes\">How to use multiple ZSH themes <\/h4>\n\n\n\n<p>If you want to use multiple selected themes randomly, edit the&nbsp;<code>$HOME\/.zshrc<\/code>&nbsp;and set the theme to&nbsp;<strong><code>random<\/code><\/strong>.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code><strong>ZSH_THEME=\"random\"<\/strong><\/code><\/pre>\n\n\n\n<p>Then, define the random themes to make a selection from;<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>ZSH_THEME_RANDOM_CANDIDATES=( \"gnzh\" \"agnoster\" \"robbyrussel\" )<\/code><\/pre>\n\n\n\n<p>Check more themes on&nbsp;<a rel=\"noreferrer noopener\" href=\"https:\/\/github.com\/ohmyzsh\/ohmyzsh\/wiki\/Themes\" target=\"_blank\">oh my zsh themes Github repository<\/a>.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"using-custom-oh-my-zsh-themes\">Using Custom Oh-My-ZSH Themes<\/h4>\n\n\n\n<p>There exists a whole lot of oh-my-zsh custom theme options to beef up your zsh that you can choose from. These themes are available as <a rel=\"noreferrer noopener\" href=\"https:\/\/github.com\/ohmyzsh\/ohmyzsh\/wiki\/Themes\" target=\"_blank\">external Oh-my-zsh themes<\/a>.<\/p>\n\n\n\n<p>Oh-my-zsh custom themes can be installed on&nbsp;<code>$ZSH_CUSTOM<\/code>&nbsp;directory;<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>echo $ZSH_CUSTOM<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-preformatted\"><code><strong>~\/.oh-my-zsh\/custom<\/strong><\/code><\/pre>\n\n\n\n<p>One of the custom themes that i usually like using is the Powerlevel10k Theme. So, for demo purpose, let us see how to install this theme;<\/p>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"install-powerlevel-10-k-oh-my-zsh-theme-on-fedora-32\"><a href=\"#install-powerlevel10k-zsh-theme-fedora\">Install Powerlevel10k Oh-My-Zsh Theme on Fedora 32<\/a><\/h4>\n\n\n\n<p>To install and use Powerlevel10k theme, you first need to install the recommended font,&nbsp;<code><strong>Meslo Nerd Font patched for Powerlevel10k<\/strong><\/code>.<\/p>\n\n\n\n<p>Download&nbsp;<strong>Meslo Nerd Font patched for Powerlevel10k<\/strong>&nbsp;fonts;<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>cd $HOME\/Downloads<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>wget https:\/\/github.com\/romkatv\/powerlevel10k-media\/raw\/master\/MesloLGS%20NF%20Regular.ttf<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>wget https:\/\/github.com\/romkatv\/powerlevel10k-media\/raw\/master\/MesloLGS%20NF%20Bold.ttf<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>wget https:\/\/github.com\/romkatv\/powerlevel10k-media\/raw\/master\/MesloLGS%20NF%20Italic.ttf<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>wget https:\/\/github.com\/romkatv\/powerlevel10k-media\/raw\/master\/MesloLGS%20NF%20Bold%20Italic.ttf<\/code><\/pre>\n\n\n\n<p>To instal the fonts, navigate to the downloads directory and&nbsp;<strong>double click and install<\/strong>&nbsp;each one of them so as to make&nbsp;<code>MesloLGS NF<\/code>&nbsp;font available system wide.<\/p>\n\n\n\n<p>Next, configure your terminal to use Powerlevel10k&nbsp;<code>MesloLGS NF<\/code>&nbsp;font. Each type of terminal has a different way in which it can be configured to use this theme.<\/p>\n\n\n\n<p>On GNOME terminal;<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Right click anywhere on the terminal and select Preferences.<\/li>\n\n\n\n<li>On the selected profile, under&nbsp;<code>Profiles,<\/code>&nbsp;check&nbsp;<code>Custom font<\/code>&nbsp;under&nbsp;<code>Text Appearance<\/code>&nbsp;and select&nbsp;<code>MesloLGS NF Regular<\/code>.<\/li>\n\n\n\n<li>Once you set the theme, close the Preferences window.<\/li>\n<\/ul>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"798\" height=\"385\" src=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2020\/09\/gnome-meslo-font-1.png\" alt=\"\" class=\"wp-image-6922\" title=\"\" srcset=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2020\/09\/gnome-meslo-font-1.png?v=1599765175 798w, https:\/\/kifarunix.com\/wp-content\/uploads\/2020\/09\/gnome-meslo-font-1-768x371.png?v=1599765175 768w\" sizes=\"(max-width: 798px) 100vw, 798px\" \/><\/figure><\/div>\n\n\n<h4 class=\"wp-block-heading\" id=\"download-and-install-powerlevel-10-k-oh-my-zsh-theme\">Download and Install Powerlevel10k Oh-My-Zsh Theme<\/h4>\n\n\n\n<p>Download and install Powerlevel10k oh-my-zsh theme by running the command below;<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>git clone --depth=1 https:\/\/github.com\/romkatv\/powerlevel10k.git $ZSH_CUSTOM\/themes\/powerlevel10k<\/code><\/pre>\n\n\n\n<p>Once Powerlevel10k theme is in place, edit the Zsh configuration file,&nbsp;<code>$HOME\/.zshrc<\/code>, and change the theme to&nbsp;<code>powerlevel10k\/powerlevel10k<\/code>.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>vim $HOME\/.zshrc<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>...\n# ZSH_THEME=\"robbyrussell\"\n# ZSH_THEME=\"agnoster\"\n<strong>ZSH_THEME=\"powerlevel10k\/powerlevel10k\"<\/strong><\/code><\/pre>\n\n\n\n<p>Save and exit the Zsh configuration then reload the configs.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>source ~\/.zshrc<\/code><\/pre>\n\n\n\n<p>Upon reloading Zsh configs, Powerlevel10k&nbsp;configuration wizard&nbsp;is launched and it will ask a few questions so as to configure your prompt.&nbsp;Answer the questions appropriately.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"965\" height=\"438\" src=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2020\/09\/pwl10k-prompt.png\" alt=\"\" class=\"wp-image-6923\" title=\"\" srcset=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2020\/09\/pwl10k-prompt.png?v=1599765210 965w, https:\/\/kifarunix.com\/wp-content\/uploads\/2020\/09\/pwl10k-prompt-768x349.png?v=1599765210 768w\" sizes=\"(max-width: 965px) 100vw, 965px\" \/><\/figure><\/div>\n\n\n<p>Select your shell promt.<\/p>\n\n\n\n<p>Configure how you want your prompt to look like by going through a series of provided questions. Save the changes when done and your Powerlevel10k prompt now looks like highlighted section of the screenshot.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"956\" height=\"480\" src=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2020\/09\/oh-my-zsh-pl10k.png\" alt=\"\" class=\"wp-image-6924\" title=\"\" srcset=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2020\/09\/oh-my-zsh-pl10k.png?v=1599765263 956w, https:\/\/kifarunix.com\/wp-content\/uploads\/2020\/09\/oh-my-zsh-pl10k-768x386.png?v=1599765263 768w\" sizes=\"(max-width: 956px) 100vw, 956px\" \/><\/figure><\/div>\n\n\n<p>Basically, below are the options that I chose to get the above prompt;<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Prompt style: (3) Rainbow.<\/li>\n\n\n\n<li>Character set: (1) Unicode.<\/li>\n\n\n\n<li>Show current time: 24 hour<\/li>\n\n\n\n<li>Prompt Separators: (2) Vertical.<\/li>\n\n\n\n<li>Prompt Heads: (1) Sharp.<\/li>\n\n\n\n<li>Prompt Tails: (3) Sharp.<\/li>\n\n\n\n<li>Prompt Height: (2) Two lines.<\/li>\n\n\n\n<li>Prompt Connection: (1) Disconnected.<\/li>\n\n\n\n<li>Prompt Frame: (2) Left.<\/li>\n\n\n\n<li>Frame Color: (2) Light.<\/li>\n\n\n\n<li>Prompt Spacing: (2) Sparse.<\/li>\n\n\n\n<li>Icons: (2) Many icons.<\/li>\n\n\n\n<li>Prompt Flow: (1) Concise.<\/li>\n\n\n\n<li>nable Transient Prompt?: (n) No.<\/li>\n\n\n\n<li>Instant Prompt Mode: (1) Verbose (recommended).<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"enabling-oh-my-zsh-plugins-on-fedora-32\">Enabling Oh-My-Zsh Plugins on Fedora 32<\/h3>\n\n\n\n<p>There are a ton of oh-my-zsh plugins to further spice up your shell. Plugins are stored under, &nbsp;<code>~\/.oh-my-zsh\/plugins<\/code>. It is also possible to define custom plugin location, like,&nbsp;<code>~\/.oh-my-zsh\/custom\/plugins<\/code>.&nbsp;<\/p>\n\n\n\n<p>Plugins can be enabled by defining them under the plugins section on&nbsp;<code>~\/.zshrc<\/code>&nbsp;config file.<\/p>\n\n\n\n<p>For example, to easily prefix your current or previous commands with <code><strong>sudo<\/strong><\/code> by pressing <kbd><strong>Escape<\/strong><\/kbd> key twice<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>vim ~\/.zshrc<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-preformatted\"><code># Which plugins would you like to load?\n# Standard plugins can be found in ~\/.oh-my-zsh\/plugins\/*\n# Custom plugins may be added to ~\/.oh-my-zsh\/custom\/plugins\/\n# Example format: plugins=(rails git textmate ruby lighthouse)\n# Add wisely, as too many plugins slow down shell startup.\n<strong>plugins=(git sudo)<\/strong><\/code><\/pre>\n\n\n\n<p>Save and exit the shell. Then source&nbsp;<code>~\/.zshrc<\/code>&nbsp;for the changes to take effect.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>source ~\/.zshrc<\/code><\/pre>\n\n\n\n<p>The verify the plugin by running type a command and press escape key twice to prefix it with sudo.<\/p>\n\n\n\n<p>Each and every plugin has a readme file on what it does. Be sure to check.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"see-also\">See Also;<\/h3>\n\n\n\n<p><a href=\"https:\/\/kifarunix.com\/install-and-setup-zsh-and-oh-my-zsh-on-ubuntu-20-04\/\">Install and Setup ZSH and Oh-My-Zsh on Ubuntu 20.04<\/a><\/p>\n\n\n\n<p><a rel=\"noreferrer noopener\" href=\"https:\/\/kifarunix.com\/install-anydesk-on-ubuntu-20-04\/\" target=\"_blank\">How to<\/a><a rel=\"noreferrer noopener\" href=\"https:\/\/kifarunix.com\/install-anydesk-on-ubuntu-20-04\/\" target=\"_blank\">Install AnyDesk on Ubuntu 20.04<\/a><\/p>\n\n\n\n<p><a rel=\"noreferrer noopener\" href=\"https:\/\/kifarunix.com\/upgrade-ubuntu-18-04-to-ubuntu-20-04\/\" target=\"_blank\">Upgrade Ubuntu 18.04 to Ubuntu 20.04<\/a><\/p>\n\n\n\n<p><a rel=\"noreferrer noopener\" href=\"https:\/\/kifarunix.com\/install-virtualbox-guest-additions-on-ubuntu-20-04\/\" target=\"_blank\">Install VirtualBox Guest Additions on Ubuntu 20.04<\/a><\/p>\n\n\n\n<p><a href=\"https:\/\/kifarunix.com\/how-to-install-and-setup-zsh-and-oh-my-zsh-on-ubuntu-18-04\/\" target=\"_blank\" rel=\"noreferrer noopener\">How to Install and Setup ZSH and Oh-My-Zsh on Ubuntu 18.04<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this tutorial, we are going to learn how to install and setup Zsh and Oh-my-Zsh on Fedora 32 desktop. Z shell&nbsp;(ZSH) is a UNIX<\/p>\n","protected":false},"author":1,"featured_media":17716,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"rank_math_lock_modified_date":false,"footnotes":""},"categories":[121],"tags":[2000,2001,1998,1997,1999],"class_list":["post-6912","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-howtos","tag-configure-zsh-on-fedora","tag-customize-zsh-on-fedora","tag-install-oh-my-zsh-fedora-32","tag-install-zsh-fedora-32","tag-zsh-on-fedora","generate-columns","tablet-grid-50","mobile-grid-100","grid-parent","grid-50","resize-featured-image"],"_links":{"self":[{"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/posts\/6912"}],"collection":[{"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/comments?post=6912"}],"version-history":[{"count":5,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/posts\/6912\/revisions"}],"predecessor-version":[{"id":21515,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/posts\/6912\/revisions\/21515"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/media\/17716"}],"wp:attachment":[{"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/media?parent=6912"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/categories?post=6912"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/tags?post=6912"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}