From 7961f2792bb79c13136d892bfa36df53075f87b3 Mon Sep 17 00:00:00 2001 From: Simon Ruderich Date: Sun, 25 Aug 2024 10:40:58 +0200 Subject: [PATCH] zsh/env: don't load global configuration files --- shell/zsh/env | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/shell/zsh/env b/shell/zsh/env index 30483a0..e395b5f 100644 --- a/shell/zsh/env +++ b/shell/zsh/env @@ -21,6 +21,12 @@ source_config ~/.shell/env +# Don't load further global zsh configuration files (i.e. /etc/zsh/zprofile, +# /etc/zsh/zshrc, /etc/zsh/zlogin, /etc/zsh/zlogout); /etc/zsh/zshenv is +# always loaded. Prevents weird global settings in e.g. zprofile (thanks +# admins) from affecting my setup. +setopt no_global_rcs + # Make sure elements in PATH are unique. typeset -U path PATH -- 2.49.1