diff --git a/README.md b/README.md index e4651c2..4f16006 100644 --- a/README.md +++ b/README.md @@ -6,4 +6,4 @@ Changes: - Now theme does not depend on GitHub -![Screenshot](/screenshot.png) \ No newline at end of file +![Screenshot](/screenshot.png) diff --git a/install.sh b/install.sh index b1191c7..a2baaf4 100755 --- a/install.sh +++ b/install.sh @@ -25,4 +25,19 @@ then fi curl -fsSL https://raw.githubusercontent.com/ivabus/ivabus-zsh-theme/master/ivabus.zsh-theme > ~/.oh-my-zsh/custom/themes/ivabus.zsh-theme echo "Now you need to set ivabus as your ZSH_THEME in .zshrc" -fi \ No newline at end of file + exit 0 +fi + +if [ -f $(which wget) ] +then + if [[ $INSTALL_OHMYZSH = "y" || $INSTALL_OHMYZSH = "Y" ]] + then + sh -c "$(wget https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh -O -)" + fi + wget https://raw.githubusercontent.com/ivabus/ivabus-zsh-theme/master/ivabus.zsh-theme -O ~/.oh-my-zsh/custom/themes/ivabus.zsh-theme + echo "Now you need to set ivabus as your ZSH_THEME in .zshrc" + exit 0 +fi + +echo "Could not find a curl or wget. Install one of them, and then restart this script." +exit 255