From 386f2b2ba5605ede97cce48a7d4356f3714160d0 Mon Sep 17 00:00:00 2001 From: teutat3s Date: Mon, 9 Dec 2024 18:49:58 +0100 Subject: [PATCH] bash: ignore leading space + duplicates in history --- modules/core/terminal-tooling.nix | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/modules/core/terminal-tooling.nix b/modules/core/terminal-tooling.nix index dd0a82f..7dbb66c 100644 --- a/modules/core/terminal-tooling.nix +++ b/modules/core/terminal-tooling.nix @@ -8,7 +8,13 @@ ${name} = { programs.git.enable = true; programs.starship.enable = true; - programs.bash.enable = true; + programs.bash = { + enable = true; + historyControl = [ + "ignoredups" + "ignorespace" + ]; + }; programs.neovim = { enable = true; vimAlias = true;