Last active
November 16, 2020 03:14
-
-
Save andreigec/82f3e8609e97fe87cc59235f7ec92d98 to your computer and use it in GitHub Desktop.
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
printf "\n---\nclearing existing\n" | |
sudo apt-get purge zsh -y | |
sudo rm -rf $HOME/.oh-my-zsh | |
sudo rm -rf ~/.zshrc* | |
sudo rm -rf ~/.zcomp* | |
sudo rm -rf ~/.oh-my-zsh | |
sudo rm -rf ~/.oh-my-zsh* | |
printf "\n---\ninstalling zsh\n" | |
sudo apt-get install zsh -y | |
printf "\n---\nusing zsh\n" | |
/bin/zsh <<'EOF' | |
printf "\n---\ninstalling oh-my-zsh\n" | |
rm -rf ~/.oh-my-zsh | |
curl -Lo install.sh https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh | |
sh install.sh | |
printf "\n---\nfetching powerlevel + other plugins\n" | |
git clone https://github.com/bhilburn/powerlevel9k.git ~/.oh-my-zsh/themes/powerlevel9k | |
git clone https://github.com/zsh-users/zsh-autosuggestions ~/.oh-my-zsh/plugins/zsh-autosuggestions | |
printf "\n---\nfetching powerlevel start up script\n" | |
rm -rf ~/.power* | |
response=$(curl https://gist.githubusercontent.com/andreigec/3107b622904ae8cf46b8b9b88fb8b871/raw/.powerlevel9k.zshrc -o ~/.powerlevel9k.zshrc) | |
printf "\n---\nlinking .zshrc to powerlevel start up script\n" | |
chmod +x ~/.powerlevel9k.zshrc | |
printf "\nexport ZSH=$HOME/.oh-my-zsh\n" >| ~/.zshrc | |
printf "\nsource ~/.powerlevel9k.zshrc\n" >> ~/.zshrc | |
printf "\n---\nfixing permissions\n" | |
chmod 600 ~/.zshrc | |
source ~/.zshrc | |
printf "\n---\ncopying start script" | |
cp ~/\~/.zshrc/oh-my-zsh.sh ~/.oh-my-zsh | |
chmod 600 ~/.oh-my-zsh/oh-my-zsh.sh | |
printf "\n---\nready to go!\n" | |
EOF |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment