set pager to 'less' if 'bat' is unavailable
This commit is contained in:
parent
e9740ecf56
commit
9b55aabb93
1 changed files with 5 additions and 1 deletions
|
@ -23,7 +23,11 @@ export TEMP="/tmp"
|
||||||
export TMPDIR="/tmp"
|
export TMPDIR="/tmp"
|
||||||
export EDITOR="nvim"
|
export EDITOR="nvim"
|
||||||
export VISUAL="nvim"
|
export VISUAL="nvim"
|
||||||
export PAGER="bat"
|
if [[ "$(command bat 2> /dev/null)" ]]; then
|
||||||
|
export PAGER="bat"
|
||||||
|
else
|
||||||
|
export PAGER="less"
|
||||||
|
fi
|
||||||
|
|
||||||
# ----- history ----- #
|
# ----- history ----- #
|
||||||
export HISTFILE="$HOME/.zhistory"
|
export HISTFILE="$HOME/.zhistory"
|
||||||
|
|
Loading…
Reference in a new issue