diff options
author | YummyOreo <bobgim20@gmail.com> | 2023-03-26 12:06:19 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-26 18:06:19 +0100 |
commit | c4e68ccbcb579ff3bd103e31828977eaefd6e454 (patch) | |
tree | 10d93d13793b5276a3cacdecee21eac760f86f94 | |
parent | c30b457fc507171d55d7179c049ba5e3ad8f6b2f (diff) |
fixes (#813)
-rw-r--r-- | src/shell/atuin.nu | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/shell/atuin.nu b/src/shell/atuin.nu index f8886fc9..5dbb4082 100644 --- a/src/shell/atuin.nu +++ b/src/shell/atuin.nu @@ -6,6 +6,9 @@ let ATUIN_KEYBINDING_TOKEN = $"# (random uuid)" let _atuin_pre_execution = {|| let cmd = (commandline) + if ($cmd | is-empty) { + return + } if not ($cmd | str starts-with $ATUIN_KEYBINDING_TOKEN) { let-env ATUIN_HISTORY_ID = (atuin history start -- $cmd) } |