Fix to zoxide.nu

This commit is contained in:
2025-08-11 11:12:56 +01:00
parent 2392dd3d20
commit fd1baa7f86

View File

@@ -7,7 +7,7 @@
# Initialize hook to add new entries to the database.
if (not ($env | default false __zoxide_hooked | get __zoxide_hooked)) {
$env.__zoxide_hooked = true
$env.__zoxide_hooked = 1
$env.config = ($env | default {} config).config
$env.config = ($env.config | default {} hooks)
$env.config = ($env.config | update hooks ($env.config.hooks | default {} env_change))