$HOME\/.oh-my-zsh\/custom<\/strong><\/code><\/pre>\n\n\n\nFor example, let us try Powerlevel10k.<\/p>\n\n\n\n
Install Powerlevel10k Oh-My-Zsh Theme<\/h4>\n\n\n\n To install and use Powerlevel10k theme, you first need to install the recommended font, Meslo Nerd Font patched for Powerlevel10k<\/strong><\/code>.<\/p>\n\n\n\nDownload Meslo Nerd Font patched for Powerlevel10k<\/strong><\/code> fonts;<\/p>\n\n\n\ncd $HOME\/Downloads<\/code><\/pre>\n\n\n\nwget https:\/\/github.com\/romkatv\/powerlevel10k-media\/raw\/master\/MesloLGS%20NF%20Regular.ttf<\/code><\/pre>\n\n\n\nwget https:\/\/github.com\/romkatv\/powerlevel10k-media\/raw\/master\/MesloLGS%20NF%20Bold.ttf<\/code><\/pre>\n\n\n\nwget https:\/\/github.com\/romkatv\/powerlevel10k-media\/raw\/master\/MesloLGS%20NF%20Italic.ttf<\/code><\/pre>\n\n\n\nwget https:\/\/github.com\/romkatv\/powerlevel10k-media\/raw\/master\/MesloLGS%20NF%20Bold%20Italic.ttf<\/code><\/pre>\n\n\n\nTo install the fonts, create a .fonts<\/code> directory in your home directory if it doesn’t already exist:<\/p>\n\n\n\n[ -d ~\/.fonts ] || mkdir ~\/.fonts<\/code><\/pre>\n\n\n\nCopy all the downloaded fonts to the fonts directory created above.<\/p>\n\n\n\n
cp ~\/Downloads\/*.ttf ~\/.fonts\/<\/code><\/pre>\n\n\n\nRefresh the font cache for your user:<\/p>\n\n\n\n
fc-cache -f -v ~\/.fonts<\/code><\/pre>\n\n\n\nNow, the TrueType font should be available for use by applications for your user only<\/p>\n\n\n\n
Next, configure your terminal to use Powerlevel10k MesloLGS NF<\/code> font. Each type of terminal has a different way in which it can be configured to use this theme.<\/p>\n\n\n\nFor example, to configure GNOME terminal to use this font;<\/p>\n\n\n\n
\nRight click anywhere on the terminal and select Preferences.<\/li>\n\n\n\n On the selected profile, under Profiles,<\/code> check Custom font<\/code> under Text Appearance<\/code> and select MesloLGS NF Regular<\/code>.<\/li>\n<\/ul>\n\n\n\n
\n\t\t\t\n\t\t\t\t \n\t\t\t<\/svg>\n\t\t<\/button><\/figure><\/div>\n\n\n\nOnce you set the theme, close the Preferences window.<\/li>\n<\/ul>\n\n\n\nFor some terminals, you have to close them and open them again to be able to see the fonts.<\/p>\n\n\n\n
Once that is done, you can then download and install Powerlevel10k oh-my-zsh theme by running the command below;<\/p>\n\n\n\n
git clone --depth=1 https:\/\/github.com\/romkatv\/powerlevel10k.git $ZSH_CUSTOM\/themes\/powerlevel10k<\/code><\/pre>\n\n\n\nOnce Powerlevel10k theme is in place, edit the Zsh configuration file, $HOME\/.zshrc<\/code>, and change the theme to powerlevel10k\/powerlevel10k<\/code>.<\/p>\n\n\n\nvim $HOME\/.zshrc<\/code><\/pre>\n\n\n\n...\n# ZSH_THEME=\"robbyrussell\"\n# ZSH_THEME=\"gnzh\"\nZSH_THEME=\"powerlevel10k\/powerlevel10k\"<\/strong><\/code><\/pre>\n\n\n\nSave and exit the Zsh configuration then reload the configs.<\/p>\n\n\n\n
source ~\/.zshrc<\/code><\/pre>\n\n\n\nUpon reloading Zsh configs, Powerlevel10k configuration wizard will ask a few questions so as to configure your prompt.<\/p>\n\n\n\n
Answer the questions appropriately. Choose how you want your shell prompt to look like by going through a series of provided questions.<\/p>\n\n\n\n
Once, done save the changes and your Powerlevel10k prompt now looks like;<\/p>\n\n\n
\n
\n\t\t\t\n\t\t\t\t \n\t\t\t<\/svg>\n\t\t<\/button><\/figure><\/div>\n\n\noh my zsh!!! Isn’t it?<\/p>\n\n\n\n
Enable Oh-My-Zsh Plugins on Ubuntu 24.04<\/h3>\n\n\n\n There are a ton of oh-my-zsh plugins to further spice up your shell. Plugins are stored under, ~\/.oh-my-zsh\/plugins<\/code>. It is also possible to define custom plugin location, like, ~\/.oh-my-zsh\/custom\/plugins<\/code>. <\/p>\n\n\n\nPlugins can be enabled by defining them under the plugins section on ~\/.zshrc<\/code> config file. For example, to enable colored man pages plugin;<\/p>\n\n\n\n# 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.\nplugins=(git colored-man-pages<\/strong>)<\/strong>\n<\/code><\/pre>\n\n\n\nSave and exit the shell. Then source ~\/.zshrc<\/code> for the changes to take effect.<\/p>\n\n\n\nsource ~\/.zshrc<\/strong><\/code><\/pre>\n\n\n\nThe verify the plugin by running, man man<\/code>.<\/p>\n\n\n\n
<\/figure><\/div>\n\n\nThere are a lot of customization that can be done on ZSH and Oh-My-Zsh. Feel free to explore. Otherwise, we have come to an end of our guide on how to install Zsh on Ubuntu.<\/p>\n","protected":false},"excerpt":{"rendered":"
In this tutorial, we are going to learn how to install Zsh on Ubuntu 24.04. Zsh is a versatile UNIX shell with interactive login and<\/p>\n","protected":false},"author":10,"featured_media":11790,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"rank_math_lock_modified_date":false,"footnotes":""},"categories":[121],"tags":[7400,7399,7403,7402],"class_list":["post-20157","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-howtos","tag-install-oh-my-zsh-on-ubuntu-24-04","tag-install-zsh-on-ubuntu-24-04","tag-ubuntu-24-04-oh-my-zsh","tag-z-shell","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\/20157"}],"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\/10"}],"replies":[{"embeddable":true,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/comments?post=20157"}],"version-history":[{"count":5,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/posts\/20157\/revisions"}],"predecessor-version":[{"id":20923,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/posts\/20157\/revisions\/20923"}],"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=20157"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/categories?post=20157"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/tags?post=20157"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}