My zsh look

Rights prompt meaning: [Battery | Load average 5m 10m 15m | Time]

The bottom green row is from tmux (terminal multiplexer).

Within subfolder

Setup

  • install zsh / (clone zsh, build and install)

    • in Archlinux: sudo pacman -S zsh
  • clone oh-my-zsh

    • wget https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh
    • sh install.sh
  • install zsh-autosuggestions

    • git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
    • add zsh-autosuggestions to plugins in ~/.zshrc
  • download the theme into ~/.oh-my-zsh/themes/:

    • Laptop (with battery percentage): wget -P ~/.oh-my-zsh/themes https://raw.githubusercontent.com/dbernhard-0x7CD/zsh-dbern-theme/main/dbern-laptop.zsh-theme

    • Server: wget -P ~/.oh-my-zsh/themes https://raw.githubusercontent.com/dbernhard-0x7CD/zsh-dbern-theme/main/dbern.zsh-theme

  • Change ZSH_THEME to "dbern" or "dbern-laptop" in ~/.zshrc

  • For themes using UTF-8 characters (like mine below) it's necessary to use an UTF-8 locale (localectl returns something like "System Locale: LANG=en_US.UTF-8")