2021-10-05 23:45:02 +02:00
|
|
|
{ pkgs, config, lib, ... }:
|
|
|
|
with lib;
|
|
|
|
|
|
|
|
let cfg = config.erwin.fish;
|
|
|
|
in {
|
|
|
|
options.erwin.fish = {
|
2021-10-18 21:45:28 +02:00
|
|
|
enable = mkEnableOption {
|
2021-10-05 23:45:02 +02:00
|
|
|
description = "Enable fish shell";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
config = mkIf (cfg.enable) (let starship = pkgs.starship;
|
|
|
|
in {
|
|
|
|
programs.starship = {
|
|
|
|
enable = true;
|
|
|
|
enableFishIntegration = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
programs.fish = {
|
|
|
|
enable = true;
|
|
|
|
|
|
|
|
# interactiveShellInit = ''
|
|
|
|
# source ("${starship}/bin/starship" init fish --print-full-init | psub)
|
|
|
|
# '';
|
|
|
|
};
|
|
|
|
});
|
|
|
|
}
|