Modules for Elvish Shell

Fixing atuin end command

ejrichards ca473bb0 9f0ad7e2

Changed files
+7 -2
+7 -2
atuin.elv
···
}
var duration = (exact-num (math:round (* $m[duration] 1000000000)))
-
with E:ATUIN_LOG = 'error' { atuin history end --exit $exit-status --duration=$duration -- $E:ATUIN_HISTORY_ID >$os:dev-null 2>&1 & }
-
unset-env ATUIN_HISTORY_ID
}
}]
···
}
var duration = (exact-num (math:round (* $m[duration] 1000000000)))
+
var history-end = {
+
tmp E:ATUIN_LOG = 'error'
+
atuin history end --exit $exit-status --duration $duration -- $E:ATUIN_HISTORY_ID >$os:dev-null 2>&1
+
unset-env ATUIN_HISTORY_ID
+
}
+
# TODO: Add option to not background for use with `$notify-bg-job-success`?
+
$history-end &
}
}]