add some plugins from oh-my-zsh
This commit is contained in:
@@ -91,7 +91,7 @@ if [ ! -d "$PLUGINS_PATH"/fzf-tab ]; then
|
||||
echo "fzf-tab is not downloaded. Downloading..."
|
||||
git clone https://github.com/Aloxaf/fzf-tab.git "$PLUGINS_PATH"/fzf-tab
|
||||
else
|
||||
cd "$PLUGINS_PATH/fzf-tab" || exit 1
|
||||
cd "$PLUGINS_PATH"/fzf-tab || exit 1
|
||||
if [ ! -d .git ]; then
|
||||
echo "fzf-tab is not a git repository. Please remove $PLUGINS_PATH/fzf-tab and try again."
|
||||
exit 1
|
||||
@@ -101,3 +101,18 @@ else
|
||||
fi
|
||||
fi
|
||||
|
||||
# git clone oh-my-zsh
|
||||
if [ ! -d "$PLUGINS_PATH"/ohmyzsh ]; then
|
||||
echo "Oh My Zsh is not downloaded. Downloading..."
|
||||
# git clone https://github.com/ohmyzsh/ohmyzsh.git "$PATH_OHMYZSH"
|
||||
git clone https://gitee.com/mirrors/ohmyzsh.git "$PLUGINS_PATH"/ohmyzsh
|
||||
else
|
||||
cd "$PLUGINS_PATH"/ohmyzsh || exit 2
|
||||
if [ ! -d .git ]; then
|
||||
echo "Oh My Zsh is not a git repository. Please remove $PLUGINS_PATH/ohmyzsh and try again."
|
||||
exit 1
|
||||
else
|
||||
echo "Oh My Zsh is already exist. Updating..."
|
||||
git pull
|
||||
fi
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user