summaryrefslogtreecommitdiff
path: root/.bashrc
diff options
context:
space:
mode:
authorMarc Vertes <mvertes@free.fr>2024-12-14 17:06:32 +0100
committerMarc Vertes <mvertes@free.fr>2024-12-14 17:06:32 +0100
commit7138f485299e110f59bfea1bc0deda82750104e2 (patch)
tree7a69d8e1b93e5509082eed7d5ef07895b7707cd5 /.bashrc
parentb930dfe9226df393dbb98862b55a339533bb6439 (diff)
update
Diffstat (limited to '.bashrc')
-rw-r--r--.bashrc5
1 files changed, 3 insertions, 2 deletions
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