From d0e09a7149d8a7ac4a07d96417ace0e0f2504d44 Mon Sep 17 00:00:00 2001 From: Loic Nageleisen Date: Mon, 21 Dec 2020 18:15:15 +0100 Subject: [PATCH] Ignore common commands --- bash/history | 2 +- zsh/history | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/bash/history b/bash/history index 3a1c90a..69664d3 100644 --- a/bash/history +++ b/bash/history @@ -1,5 +1,5 @@ # ignore repeated, space-started, and casual commands -export HISTIGNORE="&:[ ]*:l[sl]:[bf]g:exit" +export HISTIGNORE="&:[ ]*:l[sl]:[bf]g:exit:cd .." # enable multiline historization as a single line shopt -s cmdhist diff --git a/zsh/history b/zsh/history index 38316ae..6d15dec 100644 --- a/zsh/history +++ b/zsh/history @@ -8,5 +8,6 @@ setopt hist_verify HISTSIZE=100000 SAVEHIST=100000 HISTFILE=~/.zsh_history +HISTORY_IGNORE="(^ +|ls|bg|fg|pwd|exit|cd ..)" # vim: ft=zsh