From 4f9201d3307c78341a0daf23f24a7d94b2350c97 Mon Sep 17 00:00:00 2001 From: Madeleine Sydney Date: Thu, 20 Mar 2025 09:54:22 -0600 Subject: [PATCH] feat(bash): Set Bash shellopts --- modules/home/users/crumb/bash.nix | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/modules/home/users/crumb/bash.nix b/modules/home/users/crumb/bash.nix index a0c4928..e8fe119 100755 --- a/modules/home/users/crumb/bash.nix +++ b/modules/home/users/crumb/bash.nix @@ -7,10 +7,27 @@ in { config = lib.mkIf cfg.enable { programs.bash = { 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 = { nix2json = "nix eval --impure --json --file -"; + "..." = "cd ../.."; + "...." = "cd ../../.."; }; }; }