Skip to content

Instantly share code, notes, and snippets.

@BoxingOctopus
Last active May 29, 2021 13:02
Show Gist options
  • Save BoxingOctopus/8d1df5c5f433b7299f23679c9d8298ca to your computer and use it in GitHub Desktop.
Save BoxingOctopus/8d1df5c5f433b7299f23679c9d8298ca to your computer and use it in GitHub Desktop.
Antigen Quick Installer
#!/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
@BoxingOctopus
Copy link
Author

BoxingOctopus commented May 8, 2021

Run this by executing curl -L https://git.io/JGmre | bash.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment