From 34badb315dd5ce4a83668b1de36d8fe22c88f170 Mon Sep 17 00:00:00 2001 From: madumlao Date: Mon, 19 Apr 2021 08:39:01 +0800 Subject: [PATCH] Automatically install oh-my-zsh and extra plugins --- install.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/install.sh b/install.sh index b1b55f0..af25a90 100755 --- a/install.sh +++ b/install.sh @@ -3,6 +3,17 @@ APP_DIR="$(dirname "$0")" cd "$APP_DIR" APP_DIR="$(pwd)" +echo "Install oh-my-zsh and plugins" +if ! [ -d .oh-my-zsh ]; then + git clone https://github.com/ohmyzsh/ohmyzsh "$HOME/.oh-my-zsh" +fi + +( + cd "$HOME/.oh-my-zsh/plugins" + git clone https://github.com/zsh-users/zsh-autosuggestions + git clone https://github.com/zsh-users/zsh-syntax-highlighting +) + SKEL_DIR="$APP_DIR/skel" BACK_DIR="$APP_DIR/backup"