mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-01-02 02:19:06 +01:00
Added git and zsh detection before installing.
This commit is contained in:
parent
1120f97305
commit
9cf7d5cffd
1 changed files with 12 additions and 0 deletions
|
|
@ -1,3 +1,15 @@
|
||||||
|
if ! git --version >/dev/null 2>&1
|
||||||
|
then
|
||||||
|
echo "\033[0;33mCan't find git.\033[0m You need to install \033[1;31mgit\033[0m if you want to install oh-my-zsh"
|
||||||
|
exit
|
||||||
|
fi
|
||||||
|
|
||||||
|
if ! zsh --version >/dev/null 2>&1
|
||||||
|
then
|
||||||
|
echo "\033[0;33mCan't find zsh.\033[0m You need to install \033[1;31mzsh\033[0m if you want to install oh-my-zsh"
|
||||||
|
exit
|
||||||
|
fi
|
||||||
|
|
||||||
if [ -d ~/.oh-my-zsh ]
|
if [ -d ~/.oh-my-zsh ]
|
||||||
then
|
then
|
||||||
echo "\033[0;33mYou already have Oh My Zsh installed.\033[0m You'll need to remove ~/.oh-my-zsh if you want to install"
|
echo "\033[0;33mYou already have Oh My Zsh installed.\033[0m You'll need to remove ~/.oh-my-zsh if you want to install"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue