[zsh] Move func/ directory to zsh/functions

This commit is contained in:
Eryn Wells 2026-01-18 08:43:02 -07:00
parent 91da2fc583
commit 7c08c5131f
53 changed files with 1 additions and 1 deletions

21
zsh/functions/init-env Normal file
View file

@ -0,0 +1,21 @@
# Eryn Wells <eryn@erynwells.me>
autoload -Uz binary_exists
function init-env
{
export PAGER=less
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
# Some helpful aliases for scripting
alias local-array="local -a"
alias local-map="local -A"
}
init-env "$@"