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.
This commit is contained in:
parent
21cf2a568d
commit
c952c9ecbf
1 changed files with 6 additions and 1 deletions
5
.zshrc
5
.zshrc
|
@ -13,10 +13,15 @@ fi
|
||||||
|
|
||||||
source ~/.p10k/powerlevel10k.zsh-theme
|
source ~/.p10k/powerlevel10k.zsh-theme
|
||||||
|
|
||||||
|
# These are pretty safe to assume exist
|
||||||
export PATH=~/bin:$PATH
|
export PATH=~/bin:$PATH
|
||||||
export EDITOR=vim
|
export EDITOR=vim
|
||||||
export VISUAL=$EDITOR
|
export VISUAL=$EDITOR
|
||||||
|
|
||||||
|
# most does not exist on every system I touch
|
||||||
|
if [[ -a /usr/bin/most ]]; then
|
||||||
export PAGER=most
|
export PAGER=most
|
||||||
|
fi
|
||||||
|
|
||||||
HISTFILE=~/.zsh_history
|
HISTFILE=~/.zsh_history
|
||||||
HISTSIZE=10000
|
HISTSIZE=10000
|
||||||
|
|
Loading…
Add table
Reference in a new issue