From ac270996757c2f049bddec8cff97c11462a2cfdc Mon Sep 17 00:00:00 2001 From: Anthony Perkins Date: Fri, 22 Jan 2021 15:29:22 +0000 Subject: [PATCH] Ignore leading spaces and duplicates in bash history --- roles/home-cli/files/shrc | 1 + 1 file changed, 1 insertion(+) diff --git a/roles/home-cli/files/shrc b/roles/home-cli/files/shrc index 6a80365..c6bfe45 100644 --- a/roles/home-cli/files/shrc +++ b/roles/home-cli/files/shrc @@ -99,6 +99,7 @@ if test -x /usr/bin/tty; then fi if [ "$BASH" ]; then + HISTCONTROL=ignorespace:ignoredups shopt -s histappend bind '"\e[1;5C": forward-word' bind '"\e[1;5D": backward-word'