From: Oleg Broytman Date: Fri, 6 May 2016 15:43:03 +0000 (+0300) Subject: Pass -FSX options to pager less X-Git-Url: https://git.phdru.name/?a=commitdiff_plain;h=f9e0dffa56cc04a3ad93fe1d493d6e5d4a3f66ed;p=dotfiles.git Pass -FSX options to pager less Some full-screen programs (like mutt) redraw the screen after 'less' exists so the default must not contain option -F. -F and -X are recommended for command-line programs that can produce a lot of output. Option -S is recommended for wide output. 'git' became a shell wrapper for the real git to allow calling it from other scripts. --- diff --git a/.my.cnf b/.my.cnf index 353a5fa..bbc3fd4 100644 --- a/.my.cnf +++ b/.my.cnf @@ -1,5 +1,5 @@ [mysql] auto-rehash default-character-set=utf8 -pager +pager="less -FSX" prompt="\u@\d > " diff --git a/.psqlrc b/.psqlrc index baa95d4..0b25277 100644 --- a/.psqlrc +++ b/.psqlrc @@ -10,5 +10,6 @@ \set PROMPT2 '... %R ' \set PROMPT3 '>> ' \set VERBOSITY verbose +\setenv LESS 'FRSXgimq' \timing on \unset QUIET diff --git a/bin/git b/bin/git new file mode 100755 index 0000000..733b5b2 --- /dev/null +++ b/bin/git @@ -0,0 +1,2 @@ +#! /bin/sh +LESS=FSX"$LESS" exec /usr/bin/git "$@"