mirror of
https://github.com/dcarrillo/prezto.git
synced 2024-11-01 01:31:13 +00:00
[Fix #523] Ensure zprofile exists before sourcing it
This commit is contained in:
parent
817dd3aa3a
commit
e4e4f89c9f
@ -6,7 +6,7 @@
|
||||
#
|
||||
|
||||
# Ensure that a non-login, non-interactive shell has a defined environment.
|
||||
if [[ "$SHLVL" -eq 1 && ! -o LOGIN ]]; then
|
||||
if [[ "$SHLVL" -eq 1 && ! -o LOGIN && -s "${ZDOTDIR:-$HOME}/.zprofile" ]]; then
|
||||
source "${ZDOTDIR:-$HOME}/.zprofile"
|
||||
fi
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user