add prompt theming on nushell
This commit is contained in:
parent
797c5769b2
commit
940c4c6679
2 changed files with 19 additions and 1 deletions
|
|
@ -10,6 +10,7 @@
|
|||
./devtools/ai-tools.nix
|
||||
./devtools/languages.nix
|
||||
./devtools/default.nix
|
||||
./secrets.nix
|
||||
];
|
||||
|
||||
programs.nushell.enable = true;
|
||||
|
|
@ -45,4 +46,6 @@
|
|||
};
|
||||
|
||||
rsydn.languages.enable = lib.mkDefault true;
|
||||
|
||||
rsydn.secrets.enable = lib.mkDefault true;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1 +1,16 @@
|
|||
{ lib, ... }: { programs.nushell.enable = lib.mkDefault true; }
|
||||
{ config, lib, ... }:
|
||||
let
|
||||
themeName = "capr4n.omp.json";
|
||||
themeSource = ./oh-my-posh/capr4n.omp.json;
|
||||
themeConfigPath = "${config.xdg.configHome}/oh-my-posh/${themeName}";
|
||||
in {
|
||||
programs.nushell.enable = lib.mkDefault true;
|
||||
|
||||
programs.oh-my-posh = {
|
||||
enable = lib.mkDefault true;
|
||||
enableNushellIntegration = lib.mkDefault true;
|
||||
configFile = themeConfigPath;
|
||||
};
|
||||
|
||||
xdg.configFile."oh-my-posh/${themeName}".source = themeSource;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue