Skip to content

Commit

Permalink
feat(nu): Return early if history is disabled (#1807)
Browse files Browse the repository at this point in the history
  • Loading branch information
IanManske committed Mar 4, 2024
1 parent 5c0455b commit ede5a5f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions atuin/src/shell/atuin.nu
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ede5a5f

Please sign in to comment.