nixcfg/homeManagerModules/cliApps/bash/default.nix

31 lines
652 B
Nix
Raw Normal View History

2024-04-07 22:16:33 -04:00
{
pkgs,
lib,
config,
...
}: {
options = {cliApps.bash.enable = lib.mkEnableOption "Enables bash.";};
2024-03-28 19:52:15 -04:00
config = lib.mkIf config.cliApps.bash.enable {
programs.bash = {
enable = true;
enableCompletion = true;
2024-03-29 08:49:48 -04:00
enableVteIntegration = true;
shellOptions = [
"autocd"
"cdspell"
"checkjobs"
"checkwinsize"
"dirspell"
"dotglob"
"extglob"
"globstar"
"histappend"
];
2024-03-28 19:52:15 -04:00
initExtra = ''
export PS1="[\[$(tput setaf 27)\]\u\[$(tput setaf 135)\]@\[$(tput setaf 45)\]\h:\[$(tput setaf 33)\]\w] \[$(tput sgr0)\]$ "
'';
};
};
}