aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStuart Carnie <stuart.carnie@gmail.com>2026-03-11 10:54:27 +1100
committerGitHub <noreply@github.com>2026-03-10 16:54:27 -0700
commitd20557b65bcb05e995e0c285d5be0feed334da3f (patch)
treeee8c4005746d0ecbbe7d09f644434b5d9277ac4e
parentchore: upgrade axum 0.7 to 0.8 to deduplicate with tonic's axum (diff)
downloadatuin-d20557b65bcb05e995e0c285d5be0feed334da3f.zip
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
-rw-r--r--crates/atuin/src/shell/atuin.nu8
1 files changed, 6 insertions, 2 deletions
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 {