From a8c13a639b29dbe47dd9d00e44dce756495af02c Mon Sep 17 00:00:00 2001 From: Daniel Lundin Date: Wed, 31 Aug 2022 09:18:44 +0200 Subject: [PATCH] keep stuff out of zsh history --- .zshrc | 1 + 1 file changed, 1 insertion(+) diff --git a/.zshrc b/.zshrc index 81b30a0..46621b0 100644 --- a/.zshrc +++ b/.zshrc @@ -33,6 +33,7 @@ setopt hist_save_no_dups setopt hist_subst_pattern setopt hist_verify setopt share_history +export HISTORY_IGNORE="(ls *|cd *|rm *|pwd|reboot|exit|e *|*AWS*|*SECRET*|*PASSWORD*|*TOKEN*|*API*|*KEY*|*PASS*|*SECRETS*|*SECRET_KEY*|*SECRET_TOKEN*|*SECRET_KEY_BASE*|*SECRET_TOKEN_BASE*)" ## zsh settings