summaryrefslogtreecommitdiff
path: root/utils/installer/install-nv-code.sh
diff options
context:
space:
mode:
Diffstat (limited to 'utils/installer/install-nv-code.sh')
-rwxr-xr-xutils/installer/install-nv-code.sh19
1 files changed, 14 insertions, 5 deletions
diff --git a/utils/installer/install-nv-code.sh b/utils/installer/install-nv-code.sh
index c29f9491..84f8c161 100755
--- a/utils/installer/install-nv-code.sh
+++ b/utils/installer/install-nv-code.sh
@@ -125,13 +125,22 @@ pip3 list | grep pynvim >/dev/null && echo "pynvim installed, moving on..." || i
# move old nvim directory if it exists
# [ -d "$HOME/.config/nvim" ] && moveoldnvim
-[ -f "~/.local/share/nvim/site/pack/packer/opt/packer.nvim" ] || installpacker
+if [ -a "$HOME/.local/share/nvim/site/pack/packer/opt/packer.nvim" ]; then
+ echo 'packer already installed'
+else
+ installpacker
+fi
+
+if [ -a "$HOME/.config/nvcode/init.lua" ]; then
+ echo 'packer already installed'
+else
+ # clone config down
+ cloneconfig
+ echo 'export PATH=$HOME/.config/nvcode/utils/bin:$PATH' >>~/.zshrc
+ echo 'export PATH=$HOME/.config/nvcode/utils/bin:$PATH' >>~/.bashrc
+fi
-# clone config down
-cloneconfig
-echo 'export PATH=$HOME/.config/nvcode/utils/bin:$PATH' >>~/.zshrc
-echo 'export PATH=$HOME/.config/nvcode/utils/bin:$PATH' >>~/.bashrc
echo "I recommend you also install and activate a font from here: https://github.com/ryanoasis/nerd-fonts"