mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-11-22 05:40:08 +00:00
Modify determine the oh-my-zsh installed in non-default path of the installed
This commit is contained in:
parent
bc3cadf5c8
commit
d4a9467f89
1 changed files with 7 additions and 2 deletions
|
@ -1,6 +1,11 @@
|
||||||
if [ -d ~/.oh-my-zsh ]
|
ZSH=`/usr/bin/env|grep 'ZSH='|cut -d '=' -f 2`
|
||||||
|
if [ -d "$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 $ZSH if you want to install"
|
||||||
|
exit
|
||||||
|
elif [ -d ~/.oh-my-zsh ]
|
||||||
|
then
|
||||||
|
echo "\033[0;33mYou already have One Oh My Zsh Directory.\033[0m You'll need to remove ~/.oh-my-zsh if you want to clone"
|
||||||
exit
|
exit
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue