diff --git a/brethil_dotfile.sh b/brethil_dotfile.sh index ddf0083..f88dc55 100755 --- a/brethil_dotfile.sh +++ b/brethil_dotfile.sh @@ -73,8 +73,14 @@ export ZSH_AUTOSUGGEST_STRATEGY=(history completion) # less options export LESS='-xRF-j12' # -j12: displays 12 lines before search results with / and ? -if [[ "$(command -v bat)" ]]; then - alias cat=bat +if [[ "$(command -v bat)" || "$(command -v batcat)" ]]; then + if [[ "$(command -v bat)" ]]; then + alias cat=bat + export PAGER=bat + else + alias cat=batcat + export PAGER=batcat + fi export BAT_THEME="gruvbox-dark" export BAT_PAGER="less $LESS" export PAGER=bat