+7
-2
atuin.elv
+7
-2
atuin.elv
···
26
26
}
27
27
var duration = (exact-num (math:round (* $m[duration] 1000000000)))
28
28
29
-
with E:ATUIN_LOG = 'error' { atuin history end --exit $exit-status --duration=$duration -- $E:ATUIN_HISTORY_ID >$os:dev-null 2>&1 & }
29
+
var history-end = {
30
+
tmp E:ATUIN_LOG = 'error'
31
+
atuin history end --exit $exit-status --duration $duration -- $E:ATUIN_HISTORY_ID >$os:dev-null 2>&1
32
+
unset-env ATUIN_HISTORY_ID
33
+
}
30
34
31
-
unset-env ATUIN_HISTORY_ID
35
+
# TODO: Add option to not background for use with `$notify-bg-job-success`?
36
+
$history-end &
32
37
}
33
38
}]
34
39