mirror of
https://github.com/Cian-H/dotfiles.git
synced 2026-08-20 15:12:52 +01:00
Update nushell config
This commit is contained in:
@@ -6,7 +6,7 @@ hide-env -i ATUIN_HISTORY_ID
|
||||
let ATUIN_KEYBINDING_TOKEN = $"# (random uuid)"
|
||||
|
||||
let _atuin_pre_execution = {||
|
||||
if ($nu | get -i history-enabled) == false {
|
||||
if ($nu | get -o history-enabled) == false {
|
||||
return
|
||||
}
|
||||
let cmd = (commandline)
|
||||
@@ -51,9 +51,9 @@ $env.config = (
|
||||
$env.config | upsert hooks (
|
||||
$env.config.hooks
|
||||
| upsert pre_execution (
|
||||
$env.config.hooks | get -i pre_execution | default [] | append $_atuin_pre_execution)
|
||||
$env.config.hooks | get -o pre_execution | default [] | append $_atuin_pre_execution)
|
||||
| upsert pre_prompt (
|
||||
$env.config.hooks | get -i pre_prompt | default [] | append $_atuin_pre_prompt)
|
||||
$env.config.hooks | get -o pre_prompt | default [] | append $_atuin_pre_prompt)
|
||||
)
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user