mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2025-12-26 02:12:33 +01:00
Allow (re)installing from local repo
This commit is contained in:
parent
73b5cffb86
commit
ebe3f9b204
1 changed files with 3 additions and 6 deletions
|
|
@ -5,15 +5,12 @@ then
|
|||
ZSH=~/.oh-my-zsh
|
||||
fi
|
||||
|
||||
if [ -d $ZSH ]
|
||||
if [ ! -d $ZSH ]
|
||||
then
|
||||
echo "\033[0;33mYou already have Oh My Zsh installed.\033[0m You'll need to remove $ZSH if you want to install"
|
||||
exit
|
||||
echo "\033[0;34mCloning Oh My Zsh...\033[0m"
|
||||
/usr/bin/env git clone https://github.com/avit/oh-my-zsh.git $ZSH
|
||||
fi
|
||||
|
||||
echo "\033[0;34mCloning Oh My Zsh...\033[0m"
|
||||
/usr/bin/env git clone https://github.com/avit/oh-my-zsh.git $ZSH
|
||||
|
||||
echo "\033[0;34mLooking for an existing zsh config...\033[0m"
|
||||
if [ -f ~/.zshrc ] || [ -h ~/.zshrc ]
|
||||
then
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue