dootfiles/.shell-env

38 lines
630 B
Text
Raw Permalink Normal View History

# vim: set ft=sh sw=2 et :
##
## Editors
##
2024-03-14 22:51:05 -04:00
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
##
## GPG/SSH Agent
##
#gpgconf --launch gpg-agent export GPG_TTY=$(tty) export SSH_AUTH_SOCK=$(gpgconf --list-dirs agent-ssh-socket)
umask 022