2024-03-14 21:25:23 -04:00
|
|
|
# vim: set ft=sh sw=2 et :
|
|
|
|
|
|
|
|
##
|
|
|
|
## Editors
|
|
|
|
##
|
2024-03-14 22:51:05 -04:00
|
|
|
if [ -x "$(command -v nvim)" ]; then
|
2024-03-14 21:25:23 -04:00
|
|
|
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
|
|
|
|
|
2024-04-06 20:40:17 -04:00
|
|
|
##
|
|
|
|
## GPG/SSH Agent
|
|
|
|
##
|
|
|
|
gpgconf --launch gpg-agent export GPG_TTY=$(tty) export SSH_AUTH_SOCK=$(gpgconf --list-dirs agent-ssh-socket)
|
|
|
|
|
|
|
|
|
2024-03-14 21:25:23 -04:00
|
|
|
umask 022
|