diff --git a/nixos/base/shell.nix b/nixos/base/shell.nix index eab29847..1273c4db 100644 --- a/nixos/base/shell.nix +++ b/nixos/base/shell.nix @@ -6,7 +6,7 @@ setopt autocd setopt HIST_IGNORE_DUPS setopt HIST_IGNORE_SPACE - HISTORY_IGNORE="(*^C*|:*|/*|~*|.*)" + HISTORY_IGNORE="(*^C*|:*|/*|~*|.(/*|./*|.)|(sudo |)(ls|cd)( *|))" ''; }; programs.bash = {