summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJan Pokorný <jpokorny@redhat.com>2014-02-25 20:00:42 +0100
committerJan Pokorný <jpokorny@redhat.com>2014-02-25 20:00:42 +0100
commitc9e5ad3366a72373e0a6daf1fd3e3c3bad1330ca (patch)
tree160cf962d3cc40a8cf00a0e8ebb5a85ca9382464
parentd9c8e4d1b4bda0ce9b449149e425d0996976e880 (diff)
downloaddotfiles-c9e5ad3366a72373e0a6daf1fd3e3c3bad1330ca.tar.gz
dotfiles-c9e5ad3366a72373e0a6daf1fd3e3c3bad1330ca.tar.xz
dotfiles-c9e5ad3366a72373e0a6daf1fd3e3c3bad1330ca.zip
Bash config: preexec paging hack: add "git ls-files" to list
...which now follows alphabetical order as expected Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
-rw-r--r--.bashrc2
1 files changed, 1 insertions, 1 deletions
diff --git a/.bashrc b/.bashrc
index 9c840c8..b6787bd 100644
--- a/.bashrc
+++ b/.bashrc
@@ -132,7 +132,7 @@ preexec() {
test ${BASH_SUBSHELL} -eq 0 && [[ ! "${1}" =~ .*\|.* ]] \
|| { _preexec_flag=0; return 0; }
case "$1" in
- rpm\ *|yum\ list\ *|find\ *)
+ find\ *|git\ ls-files|rpm\ *|yum\ list)
_preexec_flag=1
eval "${1} <&- 2>&1 | ${PAGER}"
trap "_preexec_flag=0; trap - RETURN;" RETURN