All Articles

Riced Out Terminal

Slick Terminal

It’s fun to give your terminal a little bit of style, in this tutorial we are going to transform our boring default stock Ubuntu terminal into a riced-out beast. Were going to add a little flavor with dozens of base 16 syntax color schemes to choose, zsh with the oh my zsh framework, patched nerd fonts, and a ruby gem called color ls. When you complete this guide your terminal will look professional, provide more functionality, and add value to your daily routine.

Install base-16-gnome-terminal (Ubuntu 20.04)

the default shell in Ubuntu 20.04 is the Gnome terminal, locate the shell you are using from the link provided and follow the instructions accordingly.

base16 github page

git clone https://github.com/aaron-williamson/base16-gnome-terminal.git ~/.config/base16-gnome-terminal
.config/base16-gnome-terminal/color-scripts/base16-default-dark.sh

# navigate to the color scripts directory to see all of the available color schemes
cd .config/base-16-gnome-terminal/color-scripts

# choose a scheme and execute it
./base16-pop-256.sh

open the Gnome terminal preferences and set your scheme profile as default. restart the terminal

Download and install the patched Hack Nerd Font

download the hack.zip file, extract the contents and install the “Hack Regular Nerd Font Complete.ttf” font. Open the Gnome terminal preferences and set this as your terminal font

Nerd fonts download page

Install Ruby

sudo apt install ruby-full

Install Color LS

Color LS

sudo gem install colorls

Install ZSH

sudo apt install zsh

Make ZSH your default shell

chsh -s $(which zsh)

log out and back in again to apply the changes in Ubuntu

Verify that ZSH is your default shell

echo $SHELL

Install Oh My Zsh

Oh My ZSH

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

Install the PowerLevel10K theme

Powerlevel10k

this will also include the plugins for auto suggestions and syntax highlighting

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

git clone https://github.com/zsh-users/zsh-autosuggestions.git $ZSH_CUSTOM/plugins/zsh-autosuggestions

git clone https://github.com/zsh-users/zsh-syntax-highlighting.git $ZSH_CUSTOM/plugins/zsh-syntax-highlighting

Edit the .zshrc configuration

use your editor of choice to make the following changes to the .zshrc configuration file in your home directory

vim .zshrc

# find the ZSH_THEME and change it to
ZSH_THEME="powerlevel10k/powerlevel10k"

# add the following line right below ZSH_THEME to incorporate the patched Hack Nerd font installed earlier
POWERLEVEL10K_MODE="nerdfont-complete"

# uncomment the following line to enable command auto-correction.
ENABLE_CORRECTION="true"

# to add the plugins we downloaded, edit plugins=(git) as shown
plugins=(
git
zsh-autosuggestions
zsh-syntax-highlighting
)

# add the following lines anywhere in your configuration
# Color LS
export LS_COLORS

# create a few aliases to use Color LS by default
alias ls='colorls -A --gs --sd'
alias ll='colorls -lA --gs --sd'
alias lt='colorls --tree --gs --sd'

# save and exit

Run -or- Re-Run the Powerlevel10K theme setup

p10k configure

Powerlevel10K

Feel free to re-run the p10k configure setup as many times as needed. Play around with the Powerlevel10K options to get the look exactly how you like it.

Published Aug 8, 2021

IT nerd insomniac. Linux fanboy. Lover of hoppy beer & MMA.