shell.nix: Don't keep history of commands that starts with space in bash

This commit is contained in:
Wroclaw 2024-04-03 02:38:58 +02:00
parent 6b384feb78
commit 5ca45e2ac5

View file

@ -32,6 +32,10 @@ in
zoxide zoxide
]; ];
programs.bash.shellInit = ''
HISTCONTROL=ignoreboth
'';
programs.bash.interactiveShellInit = '' programs.bash.interactiveShellInit = ''
if test -n "$KITTY_INSTALLATION_DIR"; then if test -n "$KITTY_INSTALLATION_DIR"; then
export KITTY_SHELL_INTEGRATION="enabled,no-sudo" export KITTY_SHELL_INTEGRATION="enabled,no-sudo"