Modules for Elvish Shell

fix(atuin): Don't trigger start if line is empty

ejrichards d8ed1f44 ca473bb0

Changed files
+3 -1
+3 -1
atuin.elv
···
set edit:after-readline = [$@edit:after-readline {|line|
try {
-
set-env ATUIN_HISTORY_ID (atuin history start -- $line)
+
if (not-eq (str:trim-space $line) '') {
+
set-env ATUIN_HISTORY_ID (atuin history start -- $line)
+
}
} catch e {
unset-env ATUIN_HISTORY_ID
}