mirror of
https://github.com/alyraffauf/nixcfg.git
synced 2024-11-25 17:11:53 -05:00
31 lines
668 B
Nix
31 lines
668 B
Nix
{
|
|
pkgs,
|
|
lib,
|
|
config,
|
|
...
|
|
}: {
|
|
options = {alyraffauf.apps.bash.enable = lib.mkEnableOption "Enables bash.";};
|
|
|
|
config = lib.mkIf config.alyraffauf.apps.bash.enable {
|
|
programs.bash = {
|
|
enable = true;
|
|
enableCompletion = true;
|
|
enableVteIntegration = true;
|
|
shellOptions = [
|
|
"autocd"
|
|
"cdspell"
|
|
"checkjobs"
|
|
"checkwinsize"
|
|
"dirspell"
|
|
"dotglob"
|
|
"extglob"
|
|
"globstar"
|
|
"histappend"
|
|
];
|
|
initExtra = ''
|
|
export PS1="[\[$(tput setaf 27)\]\u\[$(tput setaf 135)\]@\[$(tput setaf 45)\]\h:\[$(tput setaf 33)\]\w] \[$(tput sgr0)\]$ "
|
|
'';
|
|
};
|
|
};
|
|
}
|