mirror of
https://github.com/ivabus/ivabus-zsh-theme
synced 2024-12-04 14:05:06 +03:00
Add wget install option
This commit is contained in:
parent
0c3f7093b8
commit
21a4707f9d
2 changed files with 17 additions and 2 deletions
|
@ -6,4 +6,4 @@ Changes:
|
|||
|
||||
- Now theme does not depend on GitHub
|
||||
|
||||
![Screenshot](/screenshot.png)
|
||||
![Screenshot](/screenshot.png)
|
||||
|
|
17
install.sh
17
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
|
||||
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
|
||||
|
|
Loading…
Reference in a new issue