Installation of zsh (z-shell) with oh-my-zsh in Arch Linux

Preparation

You would like to install the package manager yay instead of pacman first:

Yay installation

sudo pacman -S --needed git base-devel
git clone https://aur.archlinux.org/yay.git
cd yay
makepkg -si

You can find support at https://github.com/Jguer/yay

Installation

yay oh-my-zsh

Configuration

You can either copy the theme from this repository or even more flexible when you first clone this repository and then make a link from the themes folder to this repository.

Just copy the file

Copy the file smd.zsh-theme of this repository to the themes directory, like

sudo wget -P /usr/share/oh-my-zsh/themes https://git.kuschel.at/public/smd.zsh-theme/releases/download/1.0/smd.zsh-theme

Then copy the zsh template zshrc to your home directory

cp /usr/share/oh-my-zsh/zshrc ~/.zshrc

Goto a new user folder e.g. mkdir -p ~/gitea and cd ~/gitea

Make a clone:

git clone https:\\https://git.kuschel.at/public/smd.zsh-theme.git
cd /usr/share/oh-my-zsh/themes
sudo ln -s $HOME/gitea/smd.zsh-theme/smd.zsh-theme

Further steps:

Now you have to edit this file with e.g. nano -cl ~/.zshrc and replace the line with ZSH_THEME to:

ZSH_THEME="smd"

In addition, I like to replace the HIST_STAMPS to:

HIST_STAMPS="yyyy-mm-dd"

Last step change the shell and try to reload omz with:

sudo chsh

Now you have to enter the new shell /bin/zsh

I would recommand to log out and log back into the system to see the zsh, as this is now your default shell for the future.

-- eof --

Description
No description provided
Readme 42 KiB
2025-10-26 16:34:56 +01:00
Languages
Shell 100%