summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJan Pokorný <jpokorny@redhat.com>2014-04-08 22:56:00 +0200
committerJan Pokorný <jpokorny@redhat.com>2014-04-08 22:56:00 +0200
commit32548f5237a1226ca81a1ed60a349b8f1167d300 (patch)
tree4069082c18950dfc922121eb166eeed3decd2c2d
parentb847c22c634dee5cbe8eb09fcd80dd5aff964970 (diff)
downloaddotfiles-32548f5237a1226ca81a1ed60a349b8f1167d300.tar.gz
dotfiles-32548f5237a1226ca81a1ed60a349b8f1167d300.tar.xz
dotfiles-32548f5237a1226ca81a1ed60a349b8f1167d300.zip
Bash config: preexec paging hack: itemize affected wildcards
Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
-rw-r--r--.bashrc9
1 files changed, 8 insertions, 1 deletions
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