From 32548f5237a1226ca81a1ed60a349b8f1167d300 Mon Sep 17 00:00:00 2001 From: Jan Pokorný Date: Tue, 8 Apr 2014 22:56:00 +0200 Subject: Bash config: preexec paging hack: itemize affected wildcards MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Jan Pokorný --- .bashrc | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.bashrc b/.bashrc index 4d06f24..02c7fe3 100644 --- a/.bashrc +++ b/.bashrc @@ -143,7 +143,14 @@ preexec() { test ${BASH_SUBSHELL} -eq 0 && [[ ! "${1}" =~ .*\|.* ]] \ || { _preexec_flag=0; return 0; } case "$1" in - colordiff\ *|diff\ *|find\ *|git\ ls-files|rpm\ *|sdcv\ *|yum\ list*|yum\ search*) +colordiff\ *|\ +diff\ *|\ +find\ *|\ +git\ ls-files|\ +rpm\ *|\ +sdcv\ *|\ +yum\ list*|\ +yum\ search*) _preexec_flag=1 eval "${1} <&- 2>&1 | ${PAGER}" trap "_preexec_flag=0; trap - RETURN;" RETURN -- cgit