diff options
Diffstat (limited to '.gitconfig')
-rw-r--r-- | .gitconfig | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -24,16 +24,16 @@ test $1 -eq 0 || echo \"also $1 behind!\";\ }; git_su" pd = "!git_pd() {\ - git diff --color \"$@\" | subdiff | ${PAGER};\ + git diff --color \"$@\" | subdiff | ${GIT_PAGER:-${PAGER:-less}};\ }; git_pd" pwd = "!git_pwd() {\ - git wd --color \"$@\" | subdiff | ${PAGER};\ + git wd --color \"$@\" | subdiff | ${GIT_PAGER:-${PAGER:-less}};\ }; git_pwd" ps = "!git_ps() {\ - git show --color \"$@\" | subdiff | ${PAGER};\ + git show --color \"$@\" | subdiff | ${GIT_PAGER:-${PAGER:-less}};\ }; git_ps" pswd = "!git_pswd() {\ - git swd --color \"$@\" | subdiff | ${PAGER};\ + git swd --color \"$@\" | subdiff | ${GIT_PAGER:-${PAGER:-less}};\ }; git_pswd" # script to preserve colors; quoting is strange, but "just works" s = "!git_s() {\ @@ -50,7 +50,7 @@ }; git_se" wc = whatchanged pwc = "!git_pwc() {\ - git wc --color \"$@\" | subwc | ${PAGER};\ + git wc --color \"$@\" | subwc | ${GIT_PAGER:-${PAGER:-less}};\ }; git_pwc" # http://www.jukie.net/bart/blog/pimping-out-git-log lg = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' \ |