From 5ca45e2ac5eb51959e9928ef07f7a6b52949123d Mon Sep 17 00:00:00 2001 From: Wroclaw Date: Wed, 3 Apr 2024 02:38:58 +0200 Subject: [PATCH] shell.nix: Don't keep history of commands that starts with space in bash --- nix-os/shell.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/nix-os/shell.nix b/nix-os/shell.nix index 2b2fa88..5c2bc44 100644 --- a/nix-os/shell.nix +++ b/nix-os/shell.nix @@ -32,6 +32,10 @@ in zoxide ]; + programs.bash.shellInit = '' + HISTCONTROL=ignoreboth + ''; + programs.bash.interactiveShellInit = '' if test -n "$KITTY_INSTALLATION_DIR"; then export KITTY_SHELL_INTEGRATION="enabled,no-sudo"