Bash script to install zsh on ubuntu

!/bin/sh

apt update
apt install zsh curl git -y
sh -c “$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)” -y
git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting
git clone –depth=1 https://github.com/romkatv/powerlevel10k.git ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/themes/powerlevel10k
sed -i ‘/plugins=(git)/c\plugins=(git zsh-autosuggestions zsh-syntax-highlighting)’ ~/.zshrc
sed -i ‘/ZSH_THEME=”robbyrussell”/c\ZSH_THEME=”powerlevel10k/powerlevel10k”‘ ~/.zshrc

Leave a comment

Your email address will not be published. Required fields are marked *