[zsh] Add init-env back to the zshenv init functions
It somehow got dropped.
This commit is contained in:
parent
f7f45b5b50
commit
a64ae962ca
2 changed files with 24 additions and 0 deletions
23
zsh/func/init-env
Normal file
23
zsh/func/init-env
Normal file
|
@ -0,0 +1,23 @@
|
|||
# Eryn Wells <eryn@erynwells.me>
|
||||
|
||||
autoload -Uz binary_exists
|
||||
|
||||
function init-env
|
||||
{
|
||||
export PAGER=less
|
||||
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
|
||||
|
||||
# Some helpful aliases for scripting
|
||||
alias local-array="local -a"
|
||||
alias local-map="local -A"
|
||||
}
|
||||
|
||||
init-env "$@"
|
1
zshenv
1
zshenv
|
@ -28,6 +28,7 @@ init-env-fpath
|
|||
autoload -Uz do_init_functions
|
||||
|
||||
typeset -a zsh_init_env_functions=( \
|
||||
init-env \
|
||||
init-env-path \
|
||||
init-env-unix \
|
||||
init-env-zsh-helpers \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue