From 7138f485299e110f59bfea1bc0deda82750104e2 Mon Sep 17 00:00:00 2001 From: Marc Vertes Date: Sat, 14 Dec 2024 17:06:32 +0100 Subject: update --- .bashrc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to '.bashrc') diff --git a/.bashrc b/.bashrc index dc6c3be..81bb994 100644 --- a/.bashrc +++ b/.bashrc @@ -5,12 +5,13 @@ export PAGER=less export EDITOR=vim -export HISTIGNORE='sudo id:uname:date:exit:df:ll:ls:ps:pwd:top:history' +export HISTIGNORE='sudo id:uname:date:exit:df:ll:ls:ps:pwd:tc:top:history' export HISTCONTROL=ignoreboth:erasedups # no start space and duplicate entries export HISTSIZE=100000 # big big history export HISTFILESIZE=100000 # big big history -shopt -s histappend # append to history, don't overwrite it stty -ixon # disable Ctrl-S +shopt -s histappend # append to history, don't overwrite it +shopt -s globstar p() { [ -f "$1" -a ! -x "$1" ] && less -XF $1 || "$@" 2>&1 | less -XF ; } export -f p -- cgit v1.2.3