Revert "Gracefully handle launchctl failure, using reattach script if possible."
This reverts commit 4361239a98
.
This is better handled in .tmux.conf
This commit is contained in:
parent
4361239a98
commit
e5391f5545
1 changed files with 1 additions and 5 deletions
|
@ -16,11 +16,7 @@
|
|||
# Set environment variables for launchd processes.
|
||||
if [[ "$OSTYPE" == darwin* ]]; then
|
||||
for env_var in PATH MANPATH; do
|
||||
if which reattach-to-user-namespace > /dev/null; then
|
||||
reattach-to-user-namespace launchctl setenv "$env_var" "${(P)env_var}"
|
||||
else
|
||||
launchctl setenv "$env_var" "${(P)env_var}" || echo "Launchctl error, possible solution: Install reattach-to-user-namespace"
|
||||
fi
|
||||
launchctl setenv "$env_var" "${(P)env_var}"
|
||||
done
|
||||
fi
|
||||
} &!
|
||||
|
|
Loading…
Add table
Reference in a new issue