I may have gotten obsessed...
And I figured out how to edit my terminal so that it now gives me a welcome message and the weather forecast whenever I open the terminal...
For anyone with a bash terminal who might want to do this, I managed it by typing the code: $ nano ~/.bashrc
nano is an editing system, and ~/.bashrc is the what you want to edit. This file runs your shell.
Then, inside the script, you'll want to scroll all the way to the bottom. That's where you can safely add your code. My code looks like this:
echo "Welcome back [MY IRL NAME]" echo "Acquiring today's weather forecast..." echo " " curl wttr.in/[MY CITY]?0Q
This is what that looks like:
wttr is a site that returns the weather forecast in your own city! It's awesome! I use 0 to only show me the weather forecast for today and Q just makes it look more minimal and nice to me, even if all its doing is removing some words.
After this, you want to hit CTRL-O and then ENTER to save your file. Then, CRTL-X to exit.
Close your terminal. Open it up again, and et voila! Your terminal now greets you!!
Did you need it? Well it depends on how much you depend on your terminal, I'm personally falling in love with it and am slowly using it for everything.











