chore: minor fixes

This commit is contained in:
winston 2024-09-03 16:38:27 +02:00
parent 6215ac640d
commit 36ffe7a10f
Signed by: winston
GPG key ID: 3786770EDBC2B481

View file

@ -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" [
${lib.concatStringsSep "\n" [
completions
plugins
aliases
];
]}
'';
extraEnv = # nu
''
$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) }
}
}
'';
};
}