#!/usr/bin/env bash echo "" echo "Starting oh-my-zsh setup for $(whoami)" # Install oh-my-zsh plugins echo "Installing oh-my-zsh plugins..." # Add oh-my-zsh plugins from: https://github.com/ohmyzsh/ohmyzsh/wiki/Plugins in the list below: git clone git://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:=~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions git clone git://github.com/zsh-users/zsh-syntax-highlighting ${ZSH_CUSTOM:=~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting echo "Plugin installation complete" # Configure oh-my-zsh plugins echo "Configuring plugins..." # Add zsh-syntax-highlighting.zsh to the end of the .zshrc file echo "source ~/.oh-my-zsh/custom/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh" >> ~/.zshrc # Add the plugins you want to enable below sed -io 's/^plugins=.*/plugins=(git zsh-autosuggestions zsh-syntax-highlighting)/' ~/.zshrc echo "Plugin configuration complete" # Disable verbose zsh echo 'ZSH_DISABLE_COMPFIX=true' >> ~/.zshrc # Install custom shell theme > Substitute for yours > https://github.com/ohmyzsh/ohmyzsh/wiki/Themes ### Powerline10k https://github.com/romkatv/powerlevel10k echo "Installing custom shell theme..." git clone --depth=1 https://github.com/romkatv/powerlevel10k.git ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/themes/powerlevel10k # Enable Powelevel10k as default theme sed -io 's#^ZSH_THEME.*#ZSH_THEME="powerlevel10k/powerlevel10k"#' ~/.zshrc ## For starship theme comment above uncomment below ### Starship https://starship.rs/ #brew install starship #sed -io 's#^ZSH_THEME.*#\#ZSH_THEME=""#' ~/.zshrc #echo 'eval "$(starship init zsh)"' echo "Theme installation complete" echo "Completed oh-my-zsh setup for $(whoami)" source $ZSH/oh-my-zsh.sh