From d20557b65bcb05e995e0c285d5be0feed334da3f Mon Sep 17 00:00:00 2001 From: Stuart Carnie Date: Wed, 11 Mar 2026 10:54:27 +1100 Subject: fix: support Nushell 0.111 (#3249) The flag for `job spawn` changed, which prevents the script from compiling on Nushell 0.111+. ## Checks - [x] I am happy for maintainers to push small adjustments to this PR, to speed up the review cycle - [x] I have checked that there are no existing pull requests for the same thing --- crates/atuin/src/shell/atuin.nu | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'crates') diff --git a/crates/atuin/src/shell/atuin.nu b/crates/atuin/src/shell/atuin.nu index 3982ea6e..3bc59edc 100644 --- a/crates/atuin/src/shell/atuin.nu +++ b/crates/atuin/src/shell/atuin.nu @@ -36,8 +36,12 @@ let _atuin_pre_prompt = {|| return } with-env { ATUIN_LOG: error } { - if (version).minor >= 104 or (version).major > 0 { - job spawn -t atuin { + if (version).minor >= 111 or (version).major > 0 { + job spawn -d atuin { + ^atuin history end $'--exit=($env.LAST_EXIT_CODE)' -- $env.ATUIN_HISTORY_ID | complete + } | ignore + } else if (version).minor >= 104 or (version).major > 0 { + job spawn { ^atuin history end $'--exit=($env.LAST_EXIT_CODE)' -- $env.ATUIN_HISTORY_ID | complete } | ignore } else { -- cgit v1.3.1