diff options
author | Ian Manske <ian.manske@pm.me> | 2024-03-04 16:19:13 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-04 16:19:13 +0000 |
commit | ede5a5febf78dbd69c72ca5fab5d9b5f3737de16 (patch) | |
tree | 249544abcdc5beb91296e31b75e37f768449fd38 | |
parent | 5c0455bf9b86871d2b012add6c4dc1c649462bc3 (diff) |
feat(nu): Return early if history is disabled (#1807)
-rw-r--r-- | atuin/src/shell/atuin.nu | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/atuin/src/shell/atuin.nu b/atuin/src/shell/atuin.nu index 17591b41..adaf317a 100644 --- a/atuin/src/shell/atuin.nu +++ b/atuin/src/shell/atuin.nu @@ -6,6 +6,9 @@ hide-env -i ATUIN_HISTORY_ID let ATUIN_KEYBINDING_TOKEN = $"# (random uuid)" let _atuin_pre_execution = {|| + if ($nu | get -i history-enabled) == false { + return + } let cmd = (commandline) if ($cmd | is-empty) { return |