From: Simon Ruderich Date: Sun, 25 Aug 2024 08:40:58 +0000 (+0200) Subject: zsh/env: don't load global configuration files X-Git-Url: https://ruderich.org/simon/gitweb/?a=commitdiff_plain;h=7961f2792bb79c13136d892bfa36df53075f87b3;p=config%2Fdotfiles.git zsh/env: don't load global configuration files --- 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