From 9822f512bfeb1e9470fa9beea80d88fe424b167a Mon Sep 17 00:00:00 2001 From: Ludo Pinelli <93927273+LudoPinelli@users.noreply.github.com> Date: Wed, 17 Jan 2024 07:54:05 +0100 Subject: [PATCH] Update nushell.rs to fix error on exit (#822) _Nushell_ deprecated the use of automatic spreading lists in favor of the `...` syntax, which throws an error each time _broot_ launched via `br` is closed. This PR just update the syntax accordingly. --- src/shell_install/nushell.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/shell_install/nushell.rs b/src/shell_install/nushell.rs index 4c414440..70c401c7 100644 --- a/src/shell_install/nushell.rs +++ b/src/shell_install/nushell.rs @@ -113,9 +113,9 @@ def --env br [ let cmd_file = ([ $nu.temp-path, $"broot-(random chars).tmp" ] | path join) touch $cmd_file if ($file == null) { - ^broot --outcmd $cmd_file $args + ^broot --outcmd $cmd_file ...$args } else { - ^broot --outcmd $cmd_file $args $file + ^broot --outcmd $cmd_file ...$args $file } let $cmd = (open $cmd_file) rm -p -f $cmd_file