# vim: set ft=sh sw=2 et :

##
## Editors
##
if [ -x "$(command -v nvim)" ]; then
  export EDITOR=nvim
  export MANPAGER='nvim +Man!'
elif [ -x "$(command -v micro)" ]; then
  export EDITOR=micro
  export MANPAGER=less
else
  export EDITOR=vim
  export MANPAGER=less
fi

export GIT_EDITOR="$EDITOR"
export USE_EDITOR="$EDITOR"
export VISUAL=$EDITOR

##
## Pager
##
export PAGER=less
export LESS='-iFMRSX -x4'

if [ -f "$HOME/.shell-env.local" ]; then
  . "$HOME/.shell-env.local"
fi

umask 022