Last active
February 12, 2021 09:30
-
-
Save AndreBClark/5d2ce4e212e730d065b7b8c4367787d3 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
#!/bin/bash | |
USER_PATH=/home/$USER | |
if [ ! -x /bin/zsh ] | |
then | |
sudo apt update | |
sudo apt install zsh | |
echo 'ZSH installed!' | |
else | |
echo 'zsh already installed, skipping...' | |
fi | |
if [ ! $USER_PATH/.oh-my-zsh ] | |
then | |
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" | |
echo 'oh-my-zsh Installed' | |
else | |
echo 'oh my zsh already installed, skipping...' | |
fi | |
# install shades of purple zsh theme | |
if [ ! $USER_PATH/.oh-my-zsh/themes/shades-of-purple.zsh-theme ] | |
then | |
curl -fsSL "https://raw.githubusercontent.com/ahmadawais/Shades-of-Purple-iTerm2/master/shades-of-purple.zsh-theme" --output $USER_PATH/.oh-my-zsh/themes/shades-of-purple.zsh-theme | |
sed -i 's/ZSH_THEME="robbyrussell"/ZSH_THEME="shades-of-purple"/' $USER_PATH/.zshrc | |
echo 'installed shades of purple theme' | |
else | |
echo 'shades of purple already downloaded, skipping...' | |
fi | |
echo 'done!' | |
zsh |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment