2 min read

Oh My Zsh

Oh My Zsh

Install a replacement for bash with syntax highlighting, auto suggestions, a better ls with icons and of course Pokemon (must look to replace this with dinosaurs). I can't find anything that does the autocomplete for bash as well as zsh plugin. Typing a command then using up to cycle though it's history is so useful.

sudo apt install zsh eza

Oh my Zsh

sh -c "$(wget -O- https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" 
git clone https://github.com/zsh-users/zsh-autosuggestions ~/.oh-my-zsh/plugins/zsh-autosuggestions
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ~/.oh-my-zsh/plugins/zsh-syntax-highlighting

Pokemon

git clone https://gitlab.com/phoneybadger/pokemon-colorscripts.git
cd pokemon-colorscripts
sudo ./install.sh

Config

Edit ~/.zshrc

export ZSH="$HOME/.oh-my-zsh"

ZSH_THEME="agnoster"
#ZSH_THEME="xiong-chiamiov-plus"
#ZSH_THEME="aussiegeek"

plugins=( 
    git
    zsh-autosuggestions
    zsh-syntax-highlighting
)

source $ZSH/oh-my-zsh.sh

# Set-up icons for files/folders in terminal using eza
alias ls='eza -l --icons'
alias ll='eza -al --icons'
alias lt='eza -alr --sort=mod --tree --level=1 --icons'

source ~/.zshrc to reload the shell

I like having the path and time in a separate line above the prompt. And pokemon.
eza is a replacement for ls (exa is unmaintained)

A great zsh theme that is not included in the bundle

GitHub - romkatv/powerlevel10k: A Zsh theme
A Zsh theme. Contribute to romkatv/powerlevel10k development by creating an account on GitHub.