{"id":5515,"date":"2020-04-19T20:53:05","date_gmt":"2020-04-19T17:53:05","guid":{"rendered":"https:\/\/kifarunix.com\/?p=5515"},"modified":"2024-03-14T20:17:27","modified_gmt":"2024-03-14T17:17:27","slug":"install-and-setup-zsh-and-oh-my-zsh-on-ubuntu","status":"publish","type":"post","link":"https:\/\/kifarunix.com\/install-and-setup-zsh-and-oh-my-zsh-on-ubuntu\/","title":{"rendered":"Install and Setup ZSH and Oh-My-Zsh on Ubuntu 20.04\/Ubuntu 22.04"},"content":{"rendered":"\n<p>In this tutorial, we are going to learn how to install and setup Zsh and Oh-my-Zsh on Ubuntu 20.04\/Ubuntu 22.04.<\/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=\"#install-zsh-and-oh-my-zsh-on-ubuntu-22-04-20-04\">Install ZSH and Oh-My-Zsh on Ubuntu 22.04|20.04<\/a><ul><li><a href=\"#instal-zsh-on-ubuntu-20-04-ubuntu-22-04\">Instal ZSH on Ubuntu 20.04\/Ubuntu 22.04<\/a><\/li><li><a href=\"#configure-zsh-on-ubuntu-20-04-ubuntu-22-04\">Configure ZSH on Ubuntu 20.04\/Ubuntu 22.04<\/a><\/li><li><a href=\"#install-oh-my-zsh-on-ubuntu-20-04-ubuntu-22-04\">Install Oh-my-Zsh on Ubuntu 20.04\/Ubuntu 22.04<\/a><\/li><li><a href=\"#configure-oh-my-zsh-on-ubuntu-20-04-ubuntu-22-04\">Configure Oh-My-Zsh on Ubuntu 20.04\/Ubuntu 22.04<\/a><ul><li><a href=\"#oh-my-zsh-theme-configuration\">Oh-My-Zsh Theme Configuration<\/a><\/li><\/ul><\/li><li><a href=\"#oh-my-zsh-custom-themes\">Oh-My-ZSH Custom Themes<\/a><ul><li><a href=\"#install-powerlevel-10-k-oh-my-zsh-theme\">Install Powerlevel10k Oh-My-Zsh Theme<\/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=\"#enable-oh-my-zsh-plugins-on-ubuntu-20-04-ubuntu-22-04\">Enable Oh-My-Zsh Plugins on Ubuntu 20.04\/Ubuntu 22.04<\/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=\"install-zsh-and-oh-my-zsh-on-ubuntu-22-04-20-04\">Install ZSH and Oh-My-Zsh on Ubuntu 22.04|20.04<\/h2>\n\n\n\n<p><a rel=\"noreferrer noopener\" href=\"http:\/\/zsh.sourceforge.net\/\" target=\"_blank\">Z shell<\/a>&nbsp;(ZSH) Zsh is a UNIX command interpreter (shell) usable as an interactive login shell and as a shell script command processor. It incorporates features of other shells such as Bash, tcsk, ksh. 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 rel=\"noreferrer noopener\" href=\"https:\/\/github.com\/robbyrussell\/oh-my-zsh\" target=\"_blank\"><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<p>Install <code>wget<\/code>, <code>curl<\/code> and <code>git<\/code><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo apt install wget curl git -y<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"instal-zsh-on-ubuntu-20-04-ubuntu-22-04\">Instal ZSH on Ubuntu 20.04\/Ubuntu 22.04<\/h3>\n\n\n\n<p>ZSH is available on the default Ubuntu 20.04\/Ubuntu 22.04 default repos. Thus to install it and its required dependencies, run  the command;<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo apt install zsh<\/code><\/pre>\n\n\n\n<p>To check installed version of ZSH;<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>zsh --version<\/code><\/pre>\n\n\n\n<p>Command output<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>zsh 5.8.1 (x86_64-ubuntu-linux-gnu)<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"configure-zsh-on-ubuntu-20-04-ubuntu-22-04\">Configure ZSH on Ubuntu 20.04\/Ubuntu 22.04<\/h3>\n\n\n\n<p>You can begin by changing your default shell to zsh.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo usermod -s $(which zsh) kifarunix<\/code><\/pre>\n\n\n\n<p>If you are logged in on a shell you are on a standard user, simply change your shell by running;<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>chsh -s $(which zsh)<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\">\n<li>If you do not have enough privileges to run <code>chsh<\/code> or <code>usermod<\/code> command, simply check suggestions listed <a href=\"https:\/\/unix.stackexchange.com\/questions\/136423\/making-zsh-default-shell-without-root-access\/136426\" target=\"_blank\" rel=\"noreferrer noopener\">here<\/a>&nbsp;or&nbsp;<a href=\"http:\/\/zsh.sourceforge.net\/FAQ\/zshfaq01.html#16\" target=\"_blank\" rel=\"noreferrer noopener\">here<\/a> on how to change shell as non-privileged user. Not sure it&#8217;s gonna work.<\/li>\n<\/ul>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Close the current terminal and open a new one to use your new shell.<\/li>\n<\/ul>\n\n\n\n<ul class=\"wp-block-list\">\n<li>If this doesn&#8217;t work, simply logout and re-login. Once logged in, open a terminal. You will be prompted to set your Zsh start up files. See the screenshot below;<\/li>\n<\/ul>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1027\" height=\"605\" src=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2022\/03\/zsh-setup-ubuntu.png\" alt=\"\" class=\"wp-image-11782\" title=\"\" srcset=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2022\/03\/zsh-setup-ubuntu.png?v=1646241975 1027w, https:\/\/kifarunix.com\/wp-content\/uploads\/2022\/03\/zsh-setup-ubuntu-768x452.png?v=1646241975 768w\" sizes=\"(max-width: 1027px) 100vw, 1027px\" \/><\/figure><\/div>\n\n\n<p>To populate your&nbsp;<code>~\/.zshrc<\/code>&nbsp;with the default configuration settings, select option 2.<\/p>\n\n\n\n<p>You will immediately see changes on the appearance of your shell prompts.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"912\" height=\"522\" src=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2022\/03\/default-zsh-appearance.png\" alt=\"\" class=\"wp-image-11783\" title=\"\" srcset=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2022\/03\/default-zsh-appearance.png?v=1646242022 912w, https:\/\/kifarunix.com\/wp-content\/uploads\/2022\/03\/default-zsh-appearance-768x440.png?v=1646242022 768w\" sizes=\"(max-width: 912px) 100vw, 912px\" \/><\/figure><\/div>\n\n\n<p>To confirm the current shell;<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>echo $SHELL<\/code><\/pre>\n\n\n\n<p>Command output;<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\/usr\/bin\/zsh<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"install-oh-my-zsh-on-ubuntu-20-04-ubuntu-22-04\">Install Oh-my-Zsh on Ubuntu 20.04\/Ubuntu 22.04<\/h3>\n\n\n\n<p>To be able to customize the appearance of your ZSH, you need the oh-my-zsh framework which can be installed by either using the <code>curl<\/code>&nbsp;or&nbsp;<code>wget<\/code>&nbsp;commands as shown below;<\/p>\n\n\n\n<pre class=\"wp-block-code\"><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-code\"><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-full\"><img loading=\"lazy\" decoding=\"async\" width=\"952\" height=\"665\" src=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2022\/03\/oh-my-zsh-ubuntu.png\" alt=\"\" class=\"wp-image-11784\" title=\"\" srcset=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2022\/03\/oh-my-zsh-ubuntu.png?v=1646242935 952w, https:\/\/kifarunix.com\/wp-content\/uploads\/2022\/03\/oh-my-zsh-ubuntu-768x536.png?v=1646242935 768w\" sizes=\"(max-width: 952px) 100vw, 952px\" \/><\/figure><\/div>\n\n\n<h3 class=\"wp-block-heading\" id=\"configure-oh-my-zsh-on-ubuntu-20-04-ubuntu-22-04\">Configure Oh-My-Zsh on Ubuntu 20.04\/Ubuntu 22.04<\/h3>\n\n\n\n<p>Want the \u201coh-my-zsh\u201d feeling, right? Proceed to configure it.<\/p>\n\n\n\n<p>The Oh-my-Zsh configuration files are located under&nbsp;<code>$HOME\/.oh-my-zsh\/<\/code>&nbsp;directory. Note that ZSH config file is <code>$HOME\/.zshrc<\/code>.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"oh-my-zsh-theme-configuration\">Oh-My-Zsh Theme Configuration<\/h4>\n\n\n\n<p>Oh-My-Zsh themes are located under <code>$HOME\/.oh-my-zsh\/themes\/<\/code>.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>ls -1 $HOME\/.oh-my-zsh\/themes\/<\/code><\/pre>\n\n\n\n<pre class=\"scroll-box\"><code>3den.zsh-theme\nadben.zsh-theme\naf-magic.zsh-theme\nafowler.zsh-theme\nagnoster.zsh-theme\nalanpeabody.zsh-theme\namuse.zsh-theme\napple.zsh-theme\narrow.zsh-theme\naussiegeek.zsh-theme\navit.zsh-theme\nawesomepanda.zsh-theme\nbira.zsh-theme\nblinks.zsh-theme\nbureau.zsh-theme\ncandy-kingdom.zsh-theme\ncandy.zsh-theme\nclean.zsh-theme\ncloud.zsh-theme\ncrcandy.zsh-theme\ncrunch.zsh-theme\ncypher.zsh-theme\ndallas.zsh-theme\ndarkblood.zsh-theme\ndaveverwer.zsh-theme\ndieter.zsh-theme\ndogenpunk.zsh-theme\ndpoggi.zsh-theme\ndstufft.zsh-theme\ndst.zsh-theme\nduellj.zsh-theme\neastwood.zsh-theme\nedvardm.zsh-theme\nemotty.zsh-theme\nessembeh.zsh-theme\nevan.zsh-theme\nfino-time.zsh-theme\nfino.zsh-theme\nfishy.zsh-theme\nflazz.zsh-theme\nfletcherm.zsh-theme\nfox.zsh-theme\nfrisk.zsh-theme\nfrontcube.zsh-theme\nfunky.zsh-theme\nfwalch.zsh-theme\ngallifrey.zsh-theme\ngallois.zsh-theme\ngaryblessington.zsh-theme\ngentoo.zsh-theme\ngeoffgarside.zsh-theme\ngianu.zsh-theme\ngnzh.zsh-theme\ngozilla.zsh-theme\nhalf-life.zsh-theme\nhumza.zsh-theme\nimajes.zsh-theme\nintheloop.zsh-theme\nitchy.zsh-theme\njaischeema.zsh-theme\njbergantine.zsh-theme\njispwoso.zsh-theme\njnrowe.zsh-theme\njonathan.zsh-theme\njosh.zsh-theme\njreese.zsh-theme\njtriley.zsh-theme\njuanghurtado.zsh-theme\njunkfood.zsh-theme\nkafeitu.zsh-theme\nkardan.zsh-theme\nkennethreitz.zsh-theme\nkiwi.zsh-theme\nkolo.zsh-theme\nkphoen.zsh-theme\nlambda.zsh-theme\nlinuxonly.zsh-theme\nlukerandall.zsh-theme\nmacovsky-ruby.zsh-theme\nmacovsky.zsh-theme\nmaran.zsh-theme\nmgutz.zsh-theme\nmh.zsh-theme\nmichelebologna.zsh-theme\nmikeh.zsh-theme\nmiloshadzic.zsh-theme\nminimal.zsh-theme\nmira.zsh-theme\nmlh.zsh-theme\nmortalscumbag.zsh-theme\nmrtazz.zsh-theme\nmurilasso.zsh-theme\nmuse.zsh-theme\nnanotech.zsh-theme\nnebirhos.zsh-theme\nnicoulaj.zsh-theme\nnorm.zsh-theme\nobraun.zsh-theme\npeepcode.zsh-theme\nphilips.zsh-theme\npmcgee.zsh-theme\npygmalion-virtualenv.zsh-theme\npygmalion.zsh-theme\nrandom.zsh-theme\nre5et.zsh-theme\nrefined.zsh-theme\nrgm.zsh-theme\nristo.zsh-theme\nrixius.zsh-theme\nrkj-repos.zsh-theme\nrkj.zsh-theme\nrobbyrussell.zsh-theme\nsammy.zsh-theme\nsimonoff.zsh-theme\nsimple.zsh-theme\nskaro.zsh-theme\nsmt.zsh-theme\nSoliah.zsh-theme\nsonicradish.zsh-theme\nsorin.zsh-theme\nsporty_256.zsh-theme\nsteeef.zsh-theme\nstrug.zsh-theme\nsunaku.zsh-theme\nsunrise.zsh-theme\nsuperjarin.zsh-theme\nsuvash.zsh-theme\ntakashiyoshida.zsh-theme\nterminalparty.zsh-theme\ntheunraveler.zsh-theme\ntjkirch_mod.zsh-theme\ntjkirch.zsh-theme\ntonotdo.zsh-theme\ntrapd00r.zsh-theme\nwedisagree.zsh-theme\nwezm+.zsh-theme\nwezm.zsh-theme\nwuffers.zsh-theme\nxiong-chiamiov-plus.zsh-theme\nxiong-chiamiov.zsh-theme\nys.zsh-theme\nzhann.zsh-theme\n<\/code><\/pre>\n\n\n\n<p>To change the ZSH theme, open the configuration file, <code>$HOME\/.zshrc<\/code>, and set the value of&nbsp;<code>ZSH_THEME=<\/code>&nbsp;to the name of your preferred theme.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>vim $HOME\/.zshrc<\/code><\/pre>\n\n\n\n<p><code>robbyrussel<\/code>&nbsp;is the default theme for ZSH.<\/p>\n\n\n\n<pre class=\"scroll-box\"><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\"<\/strong>\n...\n<\/code><\/pre>\n\n\n\n<p>To change the theme, simply get the name of the theme from <code>$HOME\/.oh-my-zsh\/themes\/<\/code> and replace <strong><code>robbyrussell<\/code><\/strong> with it.<\/p>\n\n\n\n<p>For example, to change the theme to <code>gnzh<\/code> theme, <code><strong>$HOME\/.oh-my-zsh\/themes\/gnzh.zsh-theme<\/strong><\/code>, update the ZSH_THEME line so it look like;<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code><strong>ZSH_THEME=\"gnzh\"<\/strong><\/code><\/pre>\n\n\n\n<p>Save and exit the file.<\/p>\n\n\n\n<p>Reload the&nbsp;<code>~\/.zshrc<\/code>&nbsp;to effect the changes everytime you make changes.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>source ~\/.zshrc<\/code><\/pre>\n\n\n\n<p>This is how <code>gnzh<\/code> theme looks like;<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"901\" height=\"444\" src=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2022\/03\/zsh-gnsh.png\" alt=\"\" class=\"wp-image-11789\" title=\"\" srcset=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2022\/03\/zsh-gnsh.png?v=1646246683 901w, https:\/\/kifarunix.com\/wp-content\/uploads\/2022\/03\/zsh-gnsh-768x378.png?v=1646246683 768w\" sizes=\"(max-width: 901px) 100vw, 901px\" \/><\/figure><\/div>\n\n\n<p>Want to use multiple selected themes randomly? Edit the <code>$HOME\/.zshrc<\/code> and set the theme to <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 themes to use in a random manner as in;<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>ZSH_THEME_RANDOM_CANDIDATES=( \"gnzh\" \"agnoster\" \"robbyrussel\" )<\/code><\/pre>\n\n\n\n<p>Check more themes on <a href=\"https:\/\/github.com\/ohmyzsh\/ohmyzsh\/wiki\/Themes\" target=\"_blank\" rel=\"noreferrer noopener\">ohmyzsh themes Github repository<\/a>.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"oh-my-zsh-custom-themes\">Oh-My-ZSH Custom Themes<\/h3>\n\n\n\n<p>There are also other <a rel=\"noreferrer noopener\" href=\"https:\/\/github.com\/ohmyzsh\/ohmyzsh\/wiki\/External-themes\" target=\"_blank\">external ohmyzsh themes<\/a> that you can check on. Custom themes can be installed on <code>$ZSH_CUSTOM<\/code> directory.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>echo $ZSH_CUSTOM<\/code><\/pre>\n\n\n\n<p>Command output;<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code><strong>$HOME\/.oh-my-zsh\/custom<\/strong><\/code><\/pre>\n\n\n\n<p>For example, let us try Powerlevel10k.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"install-powerlevel-10-k-oh-my-zsh-theme\">Install Powerlevel10k Oh-My-Zsh Theme<\/h4>\n\n\n\n<p>To install and use Powerlevel10k theme, you first need to install the recommended font, <code><strong>Meslo Nerd Font patched for Powerlevel10k<\/strong><\/code>.<\/p>\n\n\n\n<p>Download <code><strong>Meslo Nerd Font patched for Powerlevel10k<\/strong><\/code> fonts;<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>cd $HOME\/Downloads<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>wget https:\/\/github.com\/romkatv\/powerlevel10k-media\/raw\/master\/MesloLGS%20NF%20Regular.ttf<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>wget https:\/\/github.com\/romkatv\/powerlevel10k-media\/raw\/master\/MesloLGS%20NF%20Bold.ttf<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>wget https:\/\/github.com\/romkatv\/powerlevel10k-media\/raw\/master\/MesloLGS%20NF%20Italic.ttf<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><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 <strong>double click and install<\/strong> 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 <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>For example, to configure GNOME terminal to use this font;<\/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> check&nbsp;<code>Custom font<\/code>&nbsp;under&nbsp;<code>Text Appearance<\/code>&nbsp;and select&nbsp;<code>MesloLGS NF Regular<\/code>.<\/li>\n<\/ul>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"alignright size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1026\" height=\"696\" src=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2022\/03\/zsh-powerlevel10-fonts.png\" alt=\"\" class=\"wp-image-11785\" title=\"\" srcset=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2022\/03\/zsh-powerlevel10-fonts.png?v=1646245766 1026w, https:\/\/kifarunix.com\/wp-content\/uploads\/2022\/03\/zsh-powerlevel10-fonts-768x521.png?v=1646245766 768w\" sizes=\"(max-width: 1026px) 100vw, 1026px\" \/><\/figure><\/div>\n\n\n<ul class=\"wp-block-list\">\n<li>Once you set the theme, close the Preferences window.<\/li>\n<\/ul>\n\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>You can then download and install Powerlevel10k oh-my-zsh theme by running the command below;<\/p>\n\n\n\n<pre class=\"wp-block-code\"><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, <code>$HOME\/.zshrc<\/code>, and change the theme to <code>powerlevel10k\/powerlevel10k<\/code>.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>vim $HOME\/.zshrc<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>...\n# ZSH_THEME=\"robbyrussell\"\n# ZSH_THEME=\"gnzh\"\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-code\"><code>source ~\/.zshrc<\/code><\/pre>\n\n\n\n<p>Upon reloading Zsh configs, Powerlevel10k&nbsp;configuration wizard&nbsp;will ask a few questions so as to configure your prompt.<\/p>\n\n\n\n<p>Answer the questions appropriately.<\/p>\n\n\n\n<p>Select your shell prompt.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"934\" height=\"633\" src=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2022\/03\/zsh-powerlevel10k-prompt.png\" alt=\"\" class=\"wp-image-11786\" title=\"\" srcset=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2022\/03\/zsh-powerlevel10k-prompt.png?v=1646246301 934w, https:\/\/kifarunix.com\/wp-content\/uploads\/2022\/03\/zsh-powerlevel10k-prompt-768x520.png?v=1646246301 768w\" sizes=\"(max-width: 934px) 100vw, 934px\" \/><\/figure><\/div>\n\n\n<p>Configure how you want your prompt to look like by going through a series of provided questions.<\/p>\n\n\n\n<p>Once, done save the changes and your Powerlevel10k prompt now looks like;<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"629\" src=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2022\/03\/zsh-powerlevel10k-prompt_.png\" alt=\"customize zsh\" class=\"wp-image-11787\" title=\"\" srcset=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2022\/03\/zsh-powerlevel10k-prompt_.png?v=1646246377 1024w, https:\/\/kifarunix.com\/wp-content\/uploads\/2022\/03\/zsh-powerlevel10k-prompt_-768x472.png?v=1646246377 768w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure><\/div>\n\n\n<p>oh my zsh!!! Isn&#8217;t it?<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"enable-oh-my-zsh-plugins-on-ubuntu-20-04-ubuntu-22-04\">Enable Oh-My-Zsh Plugins on Ubuntu 20.04\/Ubuntu 22.04<\/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, <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 <code>~\/.zshrc<\/code> config file. For example, to enable colored man pages plugin;<\/p>\n\n\n\n<pre class=\"scroll-box\"><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 <strong>colored-man-pages<\/strong>)<\/strong>\n<\/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><strong>source ~\/.zshrc<\/strong><\/code><\/pre>\n\n\n\n<p>The verify the plugin by running, <code>man man<\/code>.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1008\" height=\"647\" src=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2022\/03\/zsh-plugins.png\" alt=\"\" class=\"wp-image-11788\" title=\"\" srcset=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2022\/03\/zsh-plugins.png?v=1646246537 1008w, https:\/\/kifarunix.com\/wp-content\/uploads\/2022\/03\/zsh-plugins-768x493.png?v=1646246537 768w\" sizes=\"(max-width: 1008px) 100vw, 1008px\" \/><\/figure><\/div>\n\n\n<p>There are a lot of customization that can be done on ZSH and Oh-My-Zsh.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"see-also\">See Also;<\/h3>\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 href=\"https:\/\/kifarunix.com\/install-anydesk-on-ubuntu-20-04\/\" target=\"_blank\" rel=\"noreferrer noopener\"> <\/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 Ubuntu 20.04\/Ubuntu 22.04. Install ZSH and Oh-My-Zsh on<\/p>\n","protected":false},"author":1,"featured_media":11790,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"rank_math_lock_modified_date":false,"footnotes":""},"categories":[121,49],"tags":[4665,1461,4664,1463,1200,232,1460],"class_list":["post-5515","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-howtos","category-command-cheatsheets","tag-install-oh-my-zsh-ubuntu-22-04","tag-install-zsh-on-ubuntu-20-04","tag-install-zsh-ubuntu-22-04","tag-oh-my-zsh-ubuntu-20-04","tag-ubuntu-20-04","tag-zsh-oh-my-zsh","tag-zsh-ubuntu-20-04","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\/5515"}],"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=5515"}],"version-history":[{"count":10,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/posts\/5515\/revisions"}],"predecessor-version":[{"id":21368,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/posts\/5515\/revisions\/21368"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/media\/11790"}],"wp:attachment":[{"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/media?parent=5515"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/categories?post=5515"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/tags?post=5515"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}