From 2f2b2c3a6376592e36016850727917ca3b232e21 Mon Sep 17 00:00:00 2001 From: Yohe-Am <56622350+Yohe-Am@users.noreply.github.com> Date: Sat, 20 Jan 2024 02:26:36 +0000 Subject: [PATCH] fix(hooks): paths vars not exported properly in fish --- install/ghjk.sh | 1 + install/hook.sh | 1 - modules/ports/sync.ts | 4 ++-- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/install/ghjk.sh b/install/ghjk.sh index 623c08a0..518f29ba 100644 --- a/install/ghjk.sh +++ b/install/ghjk.sh @@ -1,6 +1,7 @@ #!/bin/sh export GHJK_SHARE_DIR="${GHJK_SHARE_DIR:-__GHJK_SHARE_DIR__}" export DENO_DIR="${GHJK_DENO_DIR:-__DENO_CACHE_DIR}" +export DENO_NO_UPDATE_CHECK=1 # if ghjkfile var is set, set the GHJK_DIR overriding # any set by the user diff --git a/install/hook.sh b/install/hook.sh index 65244fa4..f612aa59 100644 --- a/install/hook.sh +++ b/install/hook.sh @@ -62,7 +62,6 @@ export GHJK_LAST_PWD="$PWD" precmd() { if [ "$GHJK_LAST_PWD" != "$PWD" ]; then - echo "reloading" ghjk_reload export GHJK_LAST_PWD="$PWD" fi diff --git a/modules/ports/sync.ts b/modules/ports/sync.ts index 368ed11c..38ff28e5 100644 --- a/modules/ports/sync.ts +++ b/modules/ports/sync.ts @@ -1087,8 +1087,8 @@ export ${k}="${v}:$${k}"; set --global --export ${k} '${v}';` ), ...Object.entries(pathVars).map(([k, v]) => - `set --global --append GHJK_CLEANUP_FISH 'set --global --path ${k} (string match --invert --regex "^${envDir}" $${k});'; -set --global --prepend ${k} ${v}; + `set --global --append GHJK_CLEANUP_FISH 'set --global --export --path ${k} (string match --invert --regex "^${envDir}" $${k});'; +set --global --export --prepend ${k} ${v}; ` ), ].join("\n"),