2020-12-20 20:12:20 +00:00
|
|
|
{ pkgs, config, ... }:
|
|
|
|
|
|
|
|
let
|
2022-04-23 09:36:20 +00:00
|
|
|
theme = config.lib.stylix.colors {
|
|
|
|
templateRepo = pkgs.fetchFromGitHub {
|
|
|
|
owner = "tomyun";
|
|
|
|
repo = "base16-fish";
|
|
|
|
rev = "7f647967fddedaf803191bc9113b13d2071dc3cf";
|
|
|
|
sha256 = "IGUbLjsmmAvB9UKGkR7oqdpjeVEfzt83GpyBkrZf2O4=";
|
|
|
|
};
|
2020-12-20 20:12:20 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
promptInit = ''
|
|
|
|
source ${theme}
|
2022-07-22 16:53:28 +00:00
|
|
|
base16-${config.lib.stylix.colors.slug}
|
2020-12-20 20:12:20 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
in {
|
|
|
|
programs.fish.promptInit = promptInit;
|
|
|
|
|
2022-04-24 10:38:24 +00:00
|
|
|
home-manager.sharedModules = [{
|
|
|
|
programs.fish.interactiveShellInit = promptInit;
|
|
|
|
}];
|
2020-12-20 20:12:20 +00:00
|
|
|
}
|