Configuring welcome greeting in zsh

I recently did the command line lesson on configuring an environment, such that it sends a welcome message whenever a new terminal is opened. I tried to do this on my own computer, a MacBook running zsh, but it did not work. (https://www.codecademy.com/courses/learn-the-command-line/lessons/learn-command-line-environment/exercises/configuring-environment-alias-i)

Any thoughts on what I might be doing wrong? Is there a different command than echo in zsh as opposed to bash?

Got it figured out with a friend. Turns out in bash its called .bash_profile but in zsh you need to make a file called .zprofile

Hope this helps anyone else who has the same issue!

2 Likes

You may be aware of this now but like bash there’s actually several possible files for initialisation in zsh. This stackexchange query might be useful for deciding what goes where on OSX just in case you’re going to be spending more time in your terminal-

2 Likes

Thanks for this detail!

1 Like