Add conditionals for moar (pager)
This commit is contained in:
parent
ecd77c15ee
commit
c9aab14f10
2 changed files with 6 additions and 0 deletions
.config
|
@ -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"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue