mirror of
https://github.com/atuinsh/atuin.git
synced 2024-11-22 00:03:49 +01:00
feat(nu): Return early if history is disabled (#1807)
This commit is contained in:
parent
5c0455bf9b
commit
ede5a5febf
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user