Skip to content

Instantly share code, notes, and snippets.

@rugbyprof
Created December 5, 2023 09:41
Show Gist options
  • Save rugbyprof/4ff96ed6a8ba8a5f20969bac623f89eb to your computer and use it in GitHub Desktop.
Save rugbyprof/4ff96ed6a8ba8a5f20969bac623f89eb to your computer and use it in GitHub Desktop.
Simple setup script of my droplets
apt update && apt upgrade -y
apt install git
apt install zsh
apt install wget
chsh -s /bin/zsh root
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
cp ~/.zshrc ~/.zshrc.hold
wget https://gist.githubusercontent.com/rugbyprof/5d9dc33e970e28d7cf0c8b10acd9137d/raw/106555a5ffcb6a27f13cfdc215dc93986d30107b/.zshrc_append
cat ~/.zshrc_append >> ~/.zshrc
wget https://gist.githubusercontent.com/rugbyprof/eef2b8dd55c08c232c488acc5c662b51/raw/c60ab3a16bb320d9299ecccd4a746f7b821cfb3e/griffin.zsh-theme -O ~/.oh-my-zsh/themes/griffin.zsh-theme
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting
#plugins=( [plugins...] zsh-syntax-highlighting)
git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
#plugins=( # other plugins... zsh-autosuggestions)
sed -i 's/robbyrussell/griffin/g' ~/.zshrc
sed -i '/plugins=(git)/c\
plugins=(\
git\
zsh-autosuggestions\
zsh-syntax-highlighting\
)' /path/to/configfile
source ~/.zshrc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment