From a86c8ee8a8080bf2ac2d9a1f7d6a8e1370ac60ed Mon Sep 17 00:00:00 2001 From: liv Date: Wed, 6 Nov 2024 15:27:46 +0100 Subject: [PATCH] more nu work --- dot_config/nushell/config.nu | 5 +---- dot_config/nushell/env.nu | 6 ++++++ 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/dot_config/nushell/config.nu b/dot_config/nushell/config.nu index 3838917..2101c49 100644 --- a/dot_config/nushell/config.nu +++ b/dot_config/nushell/config.nu @@ -1,8 +1,5 @@ source ~/.config/nushell/.zoxide.nu - -def src [] { - chezmoi apply; source $nu.env-path; source ~/.config/nushell/env.nu -} +use ($nu.default-config-dir | path join mise.nu) # Aliases diff --git a/dot_config/nushell/env.nu b/dot_config/nushell/env.nu index 2e49bab..e22e97d 100644 --- a/dot_config/nushell/env.nu +++ b/dot_config/nushell/env.nu @@ -71,4 +71,10 @@ $env.NU_PLUGIN_DIRS = [ ($nu.default-config-dir | path join 'plugins') # add /plugins ] +# Init zoxide zoxide init nushell | save -f ~/.config/nushell/.zoxide.nu + +# Init mise +let mise_path = $nu.default-config-dir | path join mise.nu +mise activate nu | save $mise_path --force +