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!"