From a26b0fb33766a1f71951c34fca75bd7a59a89dac Mon Sep 17 00:00:00 2001 From: arcnmx Date: Tue, 13 Feb 2024 16:57:19 -0800 Subject: [PATCH] chore: shell histignore defaults --- nixos/base/shell.nix | 11 +++++++++++ 1 file changed, 11 insertions(+) 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*" + ''; }; }