Added some output text and fixed to function as /etc/profile or /etc/zprofile