Skip to content

Commit cee6a55

Browse files
committed
zsh init check global env files
1 parent fe9baff commit cee6a55

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nerdps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ function ps1_zshinit {
8888
echo 'cd /;cd
8989
ZDOTDIR=~/
9090
for i in zshenv zprofile zshrc;do
91-
$_gprof && . /etc/zsh/$i
91+
[ -r /etc/zsh/$i ] && $_gprof && . /etc/zsh/$i
9292
[ -r .$i ] && $_uprof && . ./.$i
9393
done
9494
typeset +r PS1

0 commit comments

Comments
 (0)