Whenever i add sth in .bash_profile, i’ll re-login to make sure the new .bash_profile is reloaded. Actually there is a command to reload the .bash_profile, n there is no need to re-login for the reload. And you know what? Re-login is a very stupid way (ya i’m stupid in for quite some time :p)
To reload .bash_profile, follow the steps below:-
Advertisements
- In your Terminal enter the command below and it will reload your .bash_profile without re-login or restart.
$ source .bash_profile
‘source’ can be use in Mac, Linux or Unix system
- By now your new .bash_profile should have reloaded
Related posts:
How to convert flac to mp3 file in Mac OS X
How to restart dock when dock hang in Mac OS X
Free Project Management software for Mac OS X - GanttProject
How to delete all .svn folder in Linux / Mac?
How to add Primary and Secondary DNS server - /etc/resolve.conf - Linux
How to remove email from suggestion list in Apple Mail
How to block access to certain file types using .htaccess
How to install LAMP (Apache, PHP and MySQL in Linux) using Yum
Share this with your friends:-
Please not that to make sure it is effective you must close the current terminal and then open new terminal. I am on mac and for me the class path was not set to the new one or reloaded unless I opened a new terminal. Cheers.