2023-10-27 14:01:54 +02:00
|
|
|
{ config, pkgs, lib, materusArg, ... }:
|
2024-03-11 16:19:31 +01:00
|
|
|
let
|
|
|
|
cfg = config.materus.profile.bash;
|
2023-10-08 11:42:08 +02:00
|
|
|
in
|
|
|
|
{
|
2024-03-11 16:19:31 +01:00
|
|
|
options.materus.profile.bash.enable = materusArg.pkgs.lib.mkBoolOpt config.materus.profile.enableTerminal "Enable materus bash config";
|
2023-10-08 11:42:08 +02:00
|
|
|
|
|
|
|
|
2024-03-11 16:19:31 +01:00
|
|
|
config = lib.mkIf cfg.enable {
|
2023-10-08 11:42:08 +02:00
|
|
|
|
2024-03-11 16:19:31 +01:00
|
|
|
programs.bash = {
|
|
|
|
enable = lib.mkDefault true;
|
|
|
|
enableCompletion = lib.mkDefault true;
|
|
|
|
enableVteIntegration = lib.mkDefault true;
|
|
|
|
historyControl = lib.mkDefault [ "erasedups" "ignorespace" ];
|
|
|
|
shellOptions = lib.mkDefault [ "autocd" "checkwinsize" "cmdhist" "expand_aliases" "extglob" "globstar" "checkjobs" "nocaseglob" ];
|
2023-10-08 11:42:08 +02:00
|
|
|
};
|
2024-03-11 16:19:31 +01:00
|
|
|
};
|
2023-10-08 11:42:08 +02:00
|
|
|
|
|
|
|
}
|