Skip to content

Commit

Permalink
Update nushell.rs to fix error on exit (#822)
Browse files Browse the repository at this point in the history
_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.
  • Loading branch information
LudoPinelli authored Jan 17, 2024
1 parent 9fec985 commit 9822f51
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/shell_install/nushell.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9822f51

Please sign in to comment.