Last active
May 29, 2021 13:02
-
-
Save BoxingOctopus/8d1df5c5f433b7299f23679c9d8298ca to your computer and use it in GitHub Desktop.
Antigen Quick Installer
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 | |
ANTIGEN_HOME=$HOME/.antigen | |
ZSHRC_GIST=https://git.io/JYAnF # Basic .zshrc for use with Antigen | |
if $(dpkg --list | grep zsh > /dev/null; echo $?) != 0; then | |
echo "Installing ZSH..." | |
if $USER = 'root'; then | |
apt-get install zsh -y | |
else | |
sudo apt-get install zsh -y | |
fi | |
else | |
echo "ZSH Already Installed. Continuing..." | |
fi | |
mkdir -p $ANTIGEN_HOME | |
curl -L git.io/antigen > $ANTIGEN_HOME/antigen.zsh | |
curl -L $ZSHRC_GIST > $HOME/.zshrc | |
if $SHELL != '/bin/zsh'; then | |
echo "Changing default shell to ZSH..." | |
chsh -s /bin/zsh $USER | |
else | |
echo "Default Shell is already ZSH." | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Run this by executing
curl -L https://git.io/JGmre | bash
.