From 07ca6b6ddf502cadf1524d5732de35e9440c92d4 Mon Sep 17 00:00:00 2001 From: ViViDboarder Date: Thu, 16 Dec 2021 21:29:31 -0800 Subject: [PATCH] Some os seem to think of symblink as file vs dir --- vim-sync-append.sh | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/vim-sync-append.sh b/vim-sync-append.sh index 13f2e66..cb2f6c8 100755 --- a/vim-sync-append.sh +++ b/vim-sync-append.sh @@ -19,9 +19,7 @@ VIM_SYNC_DIR=$(pwd) # Neovim mkdir -p "${XDG_CONFIG_HOME:=$HOME/.config}" -# TODO: check nvim version and link either the vim or neovim dirs -# nvim --version | awk '/NVIM v/{ print $2; }' -[ -f "$XDG_CONFIG_HOME/nvim" ] || ln -s "$VIM_SYNC_DIR/neovim" "$XDG_CONFIG_HOME/nvim" +[ -e "$XDG_CONFIG_HOME/nvim" ] || ln -s "$VIM_SYNC_DIR/neovim" "$XDG_CONFIG_HOME/nvim" # Install all bundles echo "Install all bundles"