From 1da82f3c9ce83757ad5be5e5ed43995dce90b3db Mon Sep 17 00:00:00 2001 From: DragonSlayer_14 Date: Mon, 24 Feb 2025 14:56:24 +0100 Subject: [PATCH] =?UTF-8?q?Feat:=20F=C3=BCgt=20source=20profile=20zu=20zpr?= =?UTF-8?q?ofile=20hinzu.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Setup/4_ZshRegister.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Setup/4_ZshRegister.sh b/Setup/4_ZshRegister.sh index 7dc5bd7..d6a825b 100755 --- a/Setup/4_ZshRegister.sh +++ b/Setup/4_ZshRegister.sh @@ -51,4 +51,12 @@ fi # Repository löschen rm -rf "$REPO_DIR" +# /etc/profile in /etc/zsh/zprofile einfügen, falls nicht bereits vorhanden +if ! grep -q "source /etc/profile" /etc/zsh/zprofile; then + echo "source /etc/profile" >> /etc/zsh/zprofile + echo "🔧 'source /etc/profile' wurde in /etc/zsh/zprofile hinzugefügt." +else + echo "ℹ️ 'source /etc/profile' ist bereits in /etc/zsh/zprofile vorhanden." +fi + echo "✅ Installation abgeschlossen!"