From 36ffe7a10f32167e5ac1590fe2ad55f92ff13903 Mon Sep 17 00:00:00 2001 From: winston Date: Tue, 3 Sep 2024 16:38:27 +0200 Subject: [PATCH] chore: minor fixes --- home/apps/nu.nix | 26 ++++++++++++++++++++------ 1 file changed, 20 insertions(+), 6 deletions(-) diff --git a/home/apps/nu.nix b/home/apps/nu.nix index 570ab08..75c4361 100644 --- a/home/apps/nu.nix +++ b/home/apps/nu.nix @@ -71,7 +71,7 @@ in configFile.source = ./nu/config.nu; - extraConfig = + extraConfig = # nu '' $env.config = $env.config? | default {} $env.config.hooks = $env.config.hooks? | default {} @@ -81,11 +81,25 @@ in source ${nu_scripts}/aliases/git/git-aliases.nu source ${./nu/keybindings.nu} + + ${lib.concatStringsSep "\n" [ + completions + plugins + aliases + ]} + ''; + extraEnv = # nu '' - + lib.concatStringsSep "\n" [ - completions - plugins - aliases - ]; + $env.ENV_CONVERSIONS = { + "PATH": { + from_string: { |s| $s | split row (char esep) | path expand --no-symlink } + to_string: { |v| $v | path expand --no-symlink | str join (char esep) } + } + "Path": { + from_string: { |s| $s | split row (char esep) | path expand --no-symlink } + to_string: { |v| $v | path expand --no-symlink | str join (char esep) } + } + } + ''; }; }