commit 37b7225d7d38fba7a8f6ea3a98afcf8b5271686a
Author: Simon Watson <spw01@protonmail.com>
Date: Mon Sep 27 10:39:55 2021 -0400
Change default pager to bat
diff --git a/bashrc/bashrc-all b/bashrc/bashrc-all
index b491f6b..4b17cd4 100644
--- a/bashrc/bashrc-all
+++ b/bashrc/bashrc-all
@@ -20,6 +20,11 @@ if [ ! -z "$EXA_PATH" ]; then
alias lg="$EXA_PATH -lah --git"
fi
+BAT_PATH=$(which bat)
+if [ ! -z "$BAT_PATH" ]; then
+ export MANPAGER="$BAT_PATH"
+fi
+
# Platform agnostic aliases
export TMUX_PATH=$(which tmux --skip-alias)
alias tmuxn="$TMUX_PATH new -s $1"