Skip to content

Commit 08d13a0

Browse files
committed
zsh: manually load the global rc files we want
1 parent 6f90544 commit 08d13a0

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

zshenv

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
# vim: ft=zsh
22

3+
# disable global rc files and manually load instead. This allows us to prevent
4+
# loading /etc/zprofile on OSX 11.x
5+
setopt no_global_rcs
6+
if [ -f /etc/zshenv ]; then
7+
source /etc/zshenv
8+
fi
9+
310
for config_file (~/.zsh/startup/*.zshenv(rN)); do
411
source $config_file
512
done

zshrc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# vim: ft=zsh
22

3+
if [ -f /etc/zshrc ]; then
4+
source /etc/zshrc
5+
fi
6+
37
for config_file (~/.zsh/startup/*.zsh(rN)); do
48
source $config_file
59
done

0 commit comments

Comments
 (0)