dootfiles/.shell-env

38 lines
629 B
Bash

# 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
##
## GPG/SSH Agent
##
gpgconf --launch gpg-agent export GPG_TTY=$(tty) export SSH_AUTH_SOCK=$(gpgconf --list-dirs agent-ssh-socket)
umask 022