From c952c9ecbf0b9894c4b6269e0478ba04ef43a569 Mon Sep 17 00:00:00 2001 From: Trysdyn Black Date: Tue, 30 Jun 2020 14:49:29 -0700 Subject: [PATCH] Add check for `most` to zshrc `most` doesn't exist on every host I touch. This prevents having to specify PAGER=less on hosts that don't have it. --- .zshrc | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.zshrc b/.zshrc index 1430337..56d20e6 100644 --- a/.zshrc +++ b/.zshrc @@ -13,10 +13,15 @@ fi source ~/.p10k/powerlevel10k.zsh-theme +# These are pretty safe to assume exist export PATH=~/bin:$PATH export EDITOR=vim export VISUAL=$EDITOR -export PAGER=most + +# most does not exist on every system I touch +if [[ -a /usr/bin/most ]]; then + export PAGER=most +fi HISTFILE=~/.zsh_history HISTSIZE=10000