Refreshing .profile without restarting Terminal Window in Linux / Mac OS X

As you begin programming you are often asked to configure your Mac’s environment, and asked to add a PATH or other ENVironmental variable to your profile.

Youtube videos encourage their audience to set their environmental variables by opening and closing their terminal windows. This works fine but
With Linux/Unix/MacOSx this works fine but did you know you can launch Terminal from the command prompt?

To open a new terminal window

$ open -a Terminal ~

Using ~ is short-hand for “the current user’s home directory”

 

# common startup files
etc/profile
~/.bash_profile
~/.bashrc
~/.bash_login
~/.profile

 

Leave a Reply

Your email address will not be published. Required fields are marked *