From 4b6f74fcd9ff04ffc052d561e4793ed6c55b7f0f Mon Sep 17 00:00:00 2001 From: Kevin MacMartin Date: Thu, 15 Aug 2024 23:54:01 -0400 Subject: [PATCH] Rather than depend on a file that gets updated by the update script for the darkcloudpath, generate it on demand wherever init.vim happens to be --- init.vim | 2 +- update | 4 ---- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/init.vim b/init.vim index 6dd8739..0f336ec 100644 --- a/init.vim +++ b/init.vim @@ -10,7 +10,7 @@ "=============================================================" "load config path -exec 'source ' . expand(':p:h') . '/local/path.vim' +let g:darkcloudpath = expand(':p:h') "add config directory: (distro-agnostic system-wide) let &runtimepath = printf("%s,%s/vim,%s/local", &runtimepath, g:darkcloudpath, g:darkcloudpath) diff --git a/update b/update index bd56269..6da3c84 100755 --- a/update +++ b/update @@ -13,7 +13,6 @@ # user_vim_config=local/user.vim -path_config=local/path.vim local_bundle_dir=local/bundle error_log=update-errors.log @@ -125,9 +124,6 @@ printf '\n%s\n' "$cbg_black ~~~ DarkCloud Neovim Config Update Tool ~~~ $c_reset fi } -# create or update path.vim -printf '%s\n' "let g:darkcloudpath = \"$(readlink -f "$script_home")\"" > "$path_config" - # create user.vim if it doesn't exist [[ -e "$user_vim_config" ]] || { printf '\n%s' "$cbg_blue >> Creating user config file:$c_reset"