1
Fork 0
mirror of https://github.com/thegeneralist01/config.git synced 2026-03-07 10:59:55 +01:00

nushell: completions, colors, zoxide

This commit is contained in:
TheGeneralist 2025-06-27 04:01:34 +02:00
parent 91167bd614
commit 9dbf41d394
Signed by: thegeneralist01
SSH key fingerprint: SHA256:pp9qddbCNmVNoSjevdvQvM5z0DHN7LTa8qBMbcMq/R4
3 changed files with 48 additions and 9 deletions

View file

@ -12,6 +12,7 @@ in {
nushell
fish
zoxide
vivid
ripgrep
jq
yq-go
@ -45,12 +46,22 @@ in {
home-manager.sharedModules = [
({
home.file.".zshrc" = let
configFile = ./config.nu;
envFile = ./env.nu;
in {
text = "exec nu --env-config ${envFile} --config ${configFile}";
force = true;
home.file = {
".zshrc" = let
configFile = ./config.nu;
envFile = ./env.nu;
in {
text = "exec nu --env-config ${envFile} --config ${configFile}";
force = true;
};
".config/nushell/zoxide.nu".source = pkgs.runCommand "zoxide.nu" {} ''
${getExe pkgs.zoxide} init nushell --cmd cd > $out
'';
".config/nushell/ls_colors.txt".source = pkgs.runCommand "ls_colors.txt" {} ''
${getExe pkgs.vivid} generate gruvbox-dark-hard > $out
'';
};
})
(homeArgs: {