mirror of
https://github.com/dcarrillo/prezto.git
synced 2025-07-01 18:39:26 +00:00
[Fix #355] Do not set launchd environment variables
Setting environment variables for launchd processes is unreliable. Finder and all Finder launched programs have to be restarted for the new environment variables to take effect.
This commit is contained in:
@ -31,12 +31,6 @@ if [[ "$OSTYPE" == darwin* ]]; then
|
||||
|
||||
unset perl_path
|
||||
unset cache_file
|
||||
|
||||
# Set environment variables for launchd processes.
|
||||
for env_var in PERL_LOCAL_LIB_ROOT PERL_MB_OPT PERL_MM_OPT PERL5LIB; do
|
||||
launchctl setenv "$env_var" "${(P)env_var}" &!
|
||||
done
|
||||
unset env_var
|
||||
fi
|
||||
|
||||
#
|
||||
|
Reference in New Issue
Block a user