#!/bin/bash if (( $EUID != 0 )); then echo "This script has to be executed as root!" exit fi apt update apt install -y zsh git sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" "" --unattended mv /root/.oh-my-zsh /usr/share/oh-my-zsh cd /usr/share/oh-my-zsh/ git clone https://github.com/zsh-users/zsh-syntax-highlighting.git plugins/zsh-syntax-highlighting # cp templates/zshrc.zsh-template zshrc # wget https://aur.archlinux.org/cgit/aur.git/plain/0001-zshrc.patch\?h\=oh-my-zsh-git -O zshrc.patch && patch -p1 < zshrc.patch # sed -i 's/robbyrussell/agnoster/g' /usr/share/oh-my-zsh/zshrc wget https://internal.bit-host.io/oh-my-zsh/zshrc ln /usr/share/oh-my-zsh/zshrc /etc/skel/.zshrc cp /usr/share/oh-my-zsh/zshrc ~/.zshrc chsh -s /bin/zsh