From c059a9867ac22ecf5ce2813f3277994a5c82a2d1 Mon Sep 17 00:00:00 2001 From: ClipplerBlood <82539651+ClipplerBlood@users.noreply.github.com> Date: Fri, 29 Sep 2023 01:56:13 +0200 Subject: [PATCH] Fix VHS for Nushell version ^0.83 (#373) * Changed nushell prompt command Removed let-env in favor of $env. This supports nushell versions >= 0.83 * Update shell.go --- shell.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shell.go b/shell.go index cb504011..111675f6 100644 --- a/shell.go +++ b/shell.go @@ -62,6 +62,6 @@ var Shells = map[string]Shell{ Command: []string{"cmd.exe", "/k", "prompt=^> "}, }, nushell: { - Command: []string{"nu", "--interactive", "--execute", "let-env PROMPT_COMMAND = { '' }"}, + Command: []string{"nu", "--execute", "$env.PROMPT_COMMAND = {''}"}, }, }