aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjdhao <jdhao@hotmail.com>2022-05-21 10:43:15 +0800
committerjdhao <jdhao@hotmail.com>2022-05-21 10:43:15 +0800
commit428f612bb38e136c5cc490414df374c951c2966a (patch)
tree308e3eec3f4600f9f54fed063317f0cb5583baec
parent95b7ee5bc89171f4c72dd11a9f43965a84afa791 (diff)
update linux setup script
-rwxr-xr-xdocs/nvim_setup_linux.sh6
1 files changed, 4 insertions, 2 deletions
diff --git a/docs/nvim_setup_linux.sh b/docs/nvim_setup_linux.sh
index 1f39cc2..bb672e1 100755
--- a/docs/nvim_setup_linux.sh
+++ b/docs/nvim_setup_linux.sh
@@ -222,8 +222,10 @@ fi
git clone --depth=1 https://github.com/jdhao/nvim-config.git "$NVIM_CONFIG_DIR"
echo "Installing packer.nvim"
-git clone --depth=1 https://github.com/wbthomason/packer.nvim \
- ~/.local/share/nvim/site/pack/packer/opt/packer.nvim
+if [[ ! -d ~/.local/share/nvim/site/pack/packer/opt/packer.nvim ]]; then
+ git clone --depth=1 https://github.com/wbthomason/packer.nvim \
+ ~/.local/share/nvim/site/pack/packer/opt/packer.nvim
+fi
echo "Installing nvim plugins, please wait"
"$NVIM_DIR/bin/nvim" -c "autocmd User PackerComplete quitall" -c "PackerSync"