summaryrefslogtreecommitdiffstats
path: root/.bashrc
diff options
context:
space:
mode:
authorJan Pokorný <jpokorny@redhat.com>2014-03-02 21:38:59 +0100
committerJan Pokorný <jpokorny@redhat.com>2014-03-02 21:38:59 +0100
commitec12b871b88ef1aff737500add980cef03468b91 (patch)
tree080120ea7260514484e228863b07beff6c637e4d /.bashrc
parentc2fc9a333a81bd54ceb33b465175a09bf3c0b049 (diff)
downloaddotfiles-ec12b871b88ef1aff737500add980cef03468b91.tar.gz
dotfiles-ec12b871b88ef1aff737500add980cef03468b91.tar.xz
dotfiles-ec12b871b88ef1aff737500add980cef03468b91.zip
Bash config: preexec paging hack: add {color,}diff + yum search
Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
Diffstat (limited to '.bashrc')
-rw-r--r--.bashrc2
1 files changed, 1 insertions, 1 deletions
diff --git a/.bashrc b/.bashrc
index 97c00eb..61e3bf6 100644
--- a/.bashrc
+++ b/.bashrc
@@ -132,7 +132,7 @@ preexec() {
test ${BASH_SUBSHELL} -eq 0 && [[ ! "${1}" =~ .*\|.* ]] \
|| { _preexec_flag=0; return 0; }
case "$1" in
- find\ *|git\ ls-files|rpm\ *|sdcv\ *|yum\ list)
+ 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