Zsh & Oh-My-Zsh


🌐 Resources πŸ”—


Zsh Installation

sudo apt update -y && sudo apt install -y curl eza git-all unzip zsh
sudo chsh -s $(which zsh) $(whoami)

zsh
  • If eza does not install via apt, install it manually

sudo sh -c '
    apt update &&
    apt install -y gpg &&
    mkdir -p /usr/share/keyrings &&
    wget -qO- https://raw.githubusercontent.com/eza-community/eza/main/deb.asc | gpg --dearmor -o /usr/share/keyrings/gierens.gpg &&
    echo "deb [arch=amd64 signed-by=/usr/share/keyrings/gierens.gpg] http://deb.gierens.de stable main" | tee /etc/apt/sources.list.d/gierens.list &&
    chmod 644 /usr/share/keyrings/gierens.gpg /etc/apt/sources.list.d/gierens.list &&
    apt update &&
    apt install -y eza
'
  • Install a specific nerd font and set it as terminal emulator font

    • e.g. JetBrainsMono Nerd Font

  • Open Terminator and continue the configuration


Install the desired plugins and themes

zshrc

Edit the $HOME/.zshrc

  • Change the Zsh theme to use Powerlevel10k, add or update plugins to include additional Zsh plugins and add some lines before the source .*oh-my-zsh.sh command for additional configuration

  • Check the file and restart zsh to apply the changes and configure Powerlevel10k Theme.

  • EXTRA: to manually access the Powerlevel10k built-in configuration wizard again, run:

EXTRA

Set the same ohmyzsh config for the root user by symlinking the current user's zsh configuration.

aliases

Define custom Aliases within the ZSH_CUSTOM folder (if a oh-my-zsh user), or in the $HOME/.zshrc file if only zsh user.

path

Set Custom PATH.

Reboot the system to apply all the zsh settings


Last updated

Was this helpful?