]> ruderich.org/simon Gitweb - config/dotfiles.git/commitdiff
zsh/env: don't load global configuration files
authorSimon Ruderich <simon@ruderich.org>
Sun, 25 Aug 2024 08:40:58 +0000 (10:40 +0200)
committerSimon Ruderich <simon@ruderich.org>
Sun, 25 Aug 2024 08:40:58 +0000 (10:40 +0200)
shell/zsh/env

index 30483a0178dea80120bc2c6c6ee1a9dcfdf4d8dc..e395b5f6a2ab7173c4d95d569beb7e6847522b04 100644 (file)
 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