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 | chore(deps): bump rustls-pemfile from 2.1.0 to 2.1.1 (#1814) (diff) | |
| download | atuin-ede5a5febf78dbd69c72ca5fab5d9b5f3737de16.zip | |
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 |
