Add conditionals for moar (pager)

This commit is contained in:
Tobias Reisinger 2022-12-13 02:28:43 +01:00
parent ecd77c15ee
commit c9aab14f10
Signed by: serguzim
GPG key ID: 13AD60C237A28DFE
2 changed files with 6 additions and 0 deletions

View file

@ -36,6 +36,8 @@ export HOSTNAME="$_hostname"
export KUBECONFIG="$HOME/.kube/config"
export LOCALE_ARCHIVE="/usr/lib/locale/locale-archive"
export MAILCAPS="$XDG_CONFIG_HOME/mailcap/mailcaprc"
_makeflags=$(grep -c ^processor /proc/cpuinfo)
export MAKEFLAGS="-j$_makeflags"
@ -72,6 +74,8 @@ export ZSH="$ZDOTDIR/oh-my-zsh"
### conditionals
[ -x "$(command -v bat)" ] && export MANPAGER="sh -c 'col -bx | bat -l man -p'"
[ -x "$(command -v moar)" ] && export MANPAGER="moar"
[ -x "$(command -v moar)" ] && export PAGER="moar"
set -a
[ -f "$HOME/.config/environment.local" ] && . "$HOME/.config/environment.local"