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

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

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

 

Post a comment:

Comment

Type at least 1 character to search
Email Me:
philip@thesavvyfounder.com
Follow Me: