Skip to content

Commit

Permalink
chore: minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
nekowinston committed Sep 8, 2024
1 parent 6215ac6 commit 36ffe7a
Showing 1 changed file with 20 additions and 6 deletions.
26 changes: 20 additions & 6 deletions home/apps/nu.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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 {}
Expand All @@ -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) }
}
}
'';
};
}

0 comments on commit 36ffe7a

Please sign in to comment.