mirror of
https://github.com/atuinsh/atuin.git
synced 2025-02-18 03:11:23 +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_KEYBINDING_TOKEN = $"# (random uuid)"
|
||||||
|
|
||||||
let _atuin_pre_execution = {||
|
let _atuin_pre_execution = {||
|
||||||
|
if ($nu | get -i history-enabled) == false {
|
||||||
|
return
|
||||||
|
}
|
||||||
let cmd = (commandline)
|
let cmd = (commandline)
|
||||||
if ($cmd | is-empty) {
|
if ($cmd | is-empty) {
|
||||||
return
|
return
|
||||||
|
Loading…
Reference in New Issue
Block a user