[zsh] Give all the init-env functions consistent names

This commit is contained in:
Eryn Wells 2024-09-24 09:25:09 -07:00
parent e5505a7a69
commit f2144fcbed
8 changed files with 28 additions and 52 deletions

View file

@ -1,20 +0,0 @@
# Eryn Wells <eryn@erynwells.me>
autoload -Uz binary_exists
function init-unix-env
{
export PAGER="less"
export MANPAGER=$PAGER
export VISUAL=$EDITOR
export LESSHISTFILE="-"
export GREP_OPTIONS="--color=auto"
export GREP_COLOR="1;32"
if binary_exists gpg2; then
# Make sure gpg2 knows what to do with the curses-based smartcard PIN prompt.
export GPG_TTY=`tty`
fi
}
init-unix-env "$@"