mirror of
https://github.com/atuinsh/atuin.git
synced 2024-11-25 17:54:55 +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