Created
December 5, 2023 09:41
-
-
Save rugbyprof/4ff96ed6a8ba8a5f20969bac623f89eb to your computer and use it in GitHub Desktop.
Simple setup script of my droplets
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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