zsh: Remove double call of env scripts
On startup zsh would call all zsh env scripts (situated in `zsh/env` or `zsh/env.d/*.zsh`) *and* all sh scripts (in `sh/env` or `sh/env.d/*.sh`). However, by that point, those scripts had already been sourced once - so they just double up startup time.
This commit is contained in:
parent
0a137d1446
commit
f08fa474d6
1 changed files with 0 additions and 9 deletions
|
@ -1,15 +1,6 @@
|
|||
#!/usr/bin/env zsh
|
||||
#
|
||||
|
||||
# load global sh env vars
|
||||
[ -f "$XDG_CONFIG_HOME/sh/env" ] && source "$XDG_CONFIG_HOME/sh/env"
|
||||
if [ -d "$XDG_CONFIG_HOME/sh/env.d" ]; then
|
||||
for _env in "$XDG_CONFIG_HOME/sh/env.d"/*.sh; do
|
||||
. "$_env"
|
||||
done
|
||||
unset _env
|
||||
fi
|
||||
|
||||
# load zsh specific env vars
|
||||
if [ -d "$XDG_CONFIG_HOME/zsh/env.d" ]; then
|
||||
for _env in "$XDG_CONFIG_HOME/zsh/env.d"/*.zsh; do
|
||||
|
|
Loading…
Reference in a new issue