Modules for Elvish Shell

Fixing atuin end command

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