mirror of
https://github.com/Cian-H/dotfiles.git
synced 2025-12-22 19:31:57 +00: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)
|
||||
)
|
||||
)
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
def get_env [s: string] {
|
||||
try { $env | get --optional $s } catch { "" }
|
||||
try { $env | get -o $s } catch { "" }
|
||||
}
|
||||
|
||||
export def was_successful [] {
|
||||
|
||||
Reference in New Issue
Block a user