diff --git a/nixos/base/shell.nix b/nixos/base/shell.nix index e0ae5246..de044488 100644 --- a/nixos/base/shell.nix +++ b/nixos/base/shell.nix @@ -4,5 +4,16 @@ programs.zsh = { enable = true; enableCompletion = true; + interactiveShellInit = '' + setopt autocd + setopt HIST_IGNORE_DUPS + setopt HIST_IGNORE_SPACE + HISTORY_IGNORE="(*^C*|:*|/*|~*|.*)" + ''; + }; + programs.bash = { + interactiveShellInit = '' + HISTIGNORE="[bf]g:exit: *:*^C*" + ''; }; }