From 5b07e5cda8263e0eb5bfadd8f541d77db318d729 Mon Sep 17 00:00:00 2001 From: Simon Let Date: Fri, 19 Jun 2020 21:58:19 +0200 Subject: [PATCH] do not rely on existing home/.resh dir --- scripts/hooks.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/hooks.sh b/scripts/hooks.sh index 6a1d6bf..ff57610 100644 --- a/scripts/hooks.sh +++ b/scripts/hooks.sh @@ -20,7 +20,7 @@ __resh_preexec() { --recall-actions "$__RESH_HIST_RECALL_ACTIONS" \ --recall-strategy "$__RESH_HIST_RECALL_STRATEGY" \ --recall-last-cmdline "$__RESH_HIST_PREV_LINE" \ - >| ~/.resh/collect_last_run_out.txt 2>&1 || echo "resh-collect ERROR: $(head -n 1 ~/.resh/collect_last_run_out.txt)" + >| /tmp/resh_collect_last_run_out.txt 2>&1 || echo "resh-collect ERROR: $(head -n 1 /tmp/resh_collect_last_run_out.txt)" } # used for collect and collect --recall @@ -169,7 +169,7 @@ __resh_precmd() { -gitRemoteExitCodeAfter "$__RESH_GIT_REMOTE_EXIT_CODE_AFTER" \ -realtimeAfter "$__RESH_RT_AFTER" \ -timezoneAfter "$__RESH_TZ_AFTER" \ - >| ~/.resh/postcollect_last_run_out.txt 2>&1 || echo "resh-postcollect ERROR: $(head -n 1 ~/.resh/postcollect_last_run_out.txt)" + >| /tmp/resh_postcollect_last_run_out.txt 2>&1 || echo "resh-postcollect ERROR: $(head -n 1 /tmp/resh_postcollect_last_run_out.txt)" fi __resh_reset_variables fi