Here’s a quick tip on how to add a custom message which is displayed each time you open a new terminal window.
1. Open the Terminal app
2. Run the following command to edit the bash_profile:
|
1 |
nano ~/.bash_profile |
3. Within the editor after the source ~/.profile line, add in the following line:
|
1 |
echo "Hey. Try not to break anything, ok?" |
You can use any message you like within the quotation marks for your message.
4. Exit the editor by pressing ^X
5. Next hit Y then ENTER to save your changes
6. After your changes have been saved run this final command:
|
1 |
source ~/.bash_profile |
You should have seen your message printed out within the terminal window after running that command.
The custom message will now display each time you open a new terminal window.
Why not join our growing community and sign up to our newsletter using the form below for more tips and tricks?
