From 5916dd11e124f6ebef5911f98d6dba11ecb44b94 Mon Sep 17 00:00:00 2001 From: LordMZTE Date: Sun, 12 Nov 2023 17:00:52 +0100 Subject: [PATCH] update rash config (doesn't fully work yet) --- .config/rash/rashrc.rkt | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.config/rash/rashrc.rkt b/.config/rash/rashrc.rkt index cb2a2fb..33b9427 100644 --- a/.config/rash/rashrc.rkt +++ b/.config/rash/rashrc.rkt @@ -11,6 +11,11 @@ (unless (void? retval) (display ((current-rash-top-level-print-formatter) retval))) - (readline-prompt #{prompt show (if (exn:fail? retval) 1 0) insert |> port->bytes}))) + (parameterize ([current-environment-variables (environment-variables-copy (current-environment-variables))]) + (putenv "MZPROMPT_STATUS" (if (exn:fail? retval) "1" "0")) + (putenv "MZPROMPT_FISH_MODE" "insert") + (putenv "MZPROMPT_DURATION" "0") + (putenv "MZPROMPT_JOBS" "0") + (readline-prompt #{prompt show |> port->bytes})))) (define-simple-pipeline-alias nv nvim)