DEV Community

Cover image for Spice up your Ubuntu terminal (Using zsh and powerlevel10k repo.)
ihtesham510
ihtesham510

Posted on

Spice up your Ubuntu terminal (Using zsh and powerlevel10k repo.)

Install zsh

First install zsh using

sudo apt install zsh
Enter fullscreen mode Exit fullscreen mode

now set zsh as your shell

chsh /bin/zsh
Enter fullscreen mode Exit fullscreen mode

now restart your machine and open your terminal

if you see some option just press (2)

now check if your using the zsh by running the following command

echo $0
Enter fullscreen mode Exit fullscreen mode

Install oh my zsh.

now install oh my zsh

using

sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
Enter fullscreen mode Exit fullscreen mode

here you will see something like this

Image description

now add your fonts

you can skip this step if you want

First install gnome tweaks

sudo apt install gnome-tweaks
Enter fullscreen mode Exit fullscreen mode

if you want to add custom fonts just create a folder and name it ( .fonts ) and add all your fonts init

now open gnome tweaks

then int the font option change the monospace text to the fonts you want to use.

Image description

Powerlevel10k Repo.

Now you can install the power level 10k repo

**git clone --depth=1 https://github.com/romkatv/powerlevel10k.git ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/themes/powerlevel10k**
Enter fullscreen mode Exit fullscreen mode

now open .zshrc

gedit ~/.zshrc
Enter fullscreen mode Exit fullscreen mode

Image description

now change the roggyrussell to powerlevel10k/powerlevel10k and restart the terminal.

Now customize it to your liking and by any chance if your not happy with your customization you can restart from the beginning.

here’s what i did.

and here’s the final result.

Image description

Top comments (0)