summaryrefslogtreecommitdiff
path: root/.bashrc
diff options
context:
space:
mode:
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