From 21a4707f9def9b7c5900d365eee8cb557850eee7 Mon Sep 17 00:00:00 2001 From: Ivan Bushchik Date: Mon, 6 Jun 2022 17:45:34 +0300 Subject: [PATCH] Add wget install option --- README.md | 2 +- install.sh | 17 ++++++++++++++++- 2 files changed, 17 insertions(+), 2 deletions(-) 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