feat(bash): Set Bash shellopts

This commit is contained in:
Madeleine Sydney
2025-03-20 09:54:22 -06:00
parent 3a3e73c511
commit 4f9201d330

View File

@@ -7,10 +7,27 @@ in {
config = lib.mkIf cfg.enable { config = lib.mkIf cfg.enable {
programs.bash = { programs.bash = {
enable = true; enable = true;
shellOptions = [
# Correct minor typos in cd commands.
"cdspell"
"autocd"
# Extra glob power.
"extglob"
# Recursive glob w/ **.
"globstar"
# Append to history file.
"histappend"
# Require user confirmation for commands using expansion.
"histverify"
# Re-edit failed history substitutions.
"histreedit"
];
}; };
home.shellAliases = { home.shellAliases = {
nix2json = "nix eval --impure --json --file -"; nix2json = "nix eval --impure --json --file -";
"..." = "cd ../..";
"...." = "cd ../../..";
}; };
}; };
} }