From 6cb71fa6cccea913e21b46af3d4f81b881d1d33d Mon Sep 17 00:00:00 2001 From: "Peter J. Holzer" Date: Thu, 22 Dec 2022 16:31:21 +0100 Subject: [PATCH] Source only readable profiles Newer Ubuntu versions put files only readable by root into /etc/profile.d --- .zshenv | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.zshenv b/.zshenv index c4ab88d..311713c 100644 --- a/.zshenv +++ b/.zshenv @@ -251,6 +251,9 @@ if [ -d /etc/profile.d ] then for i in /etc/profile.d/*.sh do - . $i + if [ -r $i ] + then + . $i + fi done fi