mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-01-09 02:24:03 +01:00
Added check for zsh installation (@TomDiddle commit:f80b2727)
This commit is contained in:
parent
056ec42bbe
commit
d83c6116f5
1 changed files with 8 additions and 0 deletions
|
|
@ -1,3 +1,11 @@
|
|||
which zsh>/dev/null
|
||||
RES=$?
|
||||
if [ $RES -ne 0 ]
|
||||
then
|
||||
echo "\033[0;33mYou do not have zsh installed.\033[0m You'll need to install zsh first if you want to install oh-my-zsh"
|
||||
exit
|
||||
fi
|
||||
|
||||
if [ -d ~/.oh-my-zsh ]
|
||||
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"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue