Skip to main content
Install Zsh and Starship

Install Zsh and Starship

·144 words·1 min·
Photo by Brian McGowan on Unsplash

Zsh is an extended Bourne shell with many improvements, including some features of Bash, ksh, and tcsh. It can be further improved by Oh My Zsh, the most popular Zsh framework, adding tons of functions and plugins.

Starship is a minimal, blazing-fast, and infinitely customizable prompt for any shell, making Zsh look freaking cool!

Install zsh and oh-my-zsh
#

sudo apt-get install zsh
chsh -s $(which zsh)
curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh | sh
# install zsh-autosuggestions plugin, to be activated in .zshrc plugins list
git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions

Install Nerd Font
#

An installed and enabled Nerd Font is a prerequisite for Starship to display clean icons in prompt.

wget https://github.com/ryanoasis/nerd-fonts/releases/download/v2.2.2/CascadiaCode.zip
unzip CascadiaCode.zip -d ~/.local/share/fonts
fc-cache -fv

Install Starship
#

curl -sS https://starship.rs/install.sh | sh
echo 'eval "$(starship init zsh)"' >> ~/.zshrc
starship preset nerd-font-symbols > ~/.config/starship.toml
source .zshrc