about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2022-01-18 21:02:34 -0500
committerJune McEnroe <june@causal.agency>2022-01-18 21:02:34 -0500
commit40abab5044c5ff55677c32a688c737d6bb424683 (patch)
tree8fb4fd4bafd623a1a5da0b9ecec126fa9e8403b4
parentAdd ~/.cargo to PATH (diff)
downloadsrc-40abab5044c5ff55677c32a688c737d6bb424683.tar.gz
src-40abab5044c5ff55677c32a688c737d6bb424683.zip
Use diff-highlight for GIT_PAGER if available
-rw-r--r--home/.profile2
1 files changed, 2 insertions, 0 deletions
diff --git a/home/.profile b/home/.profile
index bb578d2..ed925b6 100644
--- a/home/.profile
+++ b/home/.profile
@@ -17,6 +17,8 @@ export LESS=FRXix4
 export CLICOLOR=1
 export MANSECT=2:3:1:8:6:5:7:4:9
 export NETHACKOPTIONS='pickup_types:$!?+/=, color, DECgraphics'
+command -v diff-highlight >/dev/null &&
+export GIT_PAGER="diff-highlight | $PAGER"
 
 test -e /usr/share/mk/sys.mk || export CFLAGS=-O
 test -d /usr/home && cd