aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuangxiong Lin <[email protected]>2022-09-08 03:21:05 +0800
committerGuangxiong Lin <[email protected]>2022-09-08 03:21:05 +0800
commitb94a510c571f3471ac13a5213d2db106b5bcf8db (patch)
tree8e716f26f7b970c7bee3a56bdf4e2a89c8f940b1
parentac5eaaaeac34ee2390e6bdfc420a8235f3f40400 (diff)
downloaddotfiles-b94a510c571f3471ac13a5213d2db106b5bcf8db.tar.gz
dotfiles-b94a510c571f3471ac13a5213d2db106b5bcf8db.tar.bz2
dotfiles-b94a510c571f3471ac13a5213d2db106b5bcf8db.zip
Use delta as git pager
-rw-r--r--.env4
1 files changed, 4 insertions, 0 deletions
diff --git a/.env b/.env
index f38df99..6580d6a 100644
--- a/.env
+++ b/.env
@@ -13,3 +13,7 @@ if type fcitx5 > /dev/null; then
export INPUT_METHOD=fcitx
export SDL_IM_MODULE=fcitx
fi
+
+if command -v delta > /dev/null; then
+ export GIT_PAGER='delta --diff-highlight'
+fi