9

I often times have to make changes to my ~/.bash_profile, and I have to restart terminal for the changes to propagate. Is there any command I can run to re-source my ~/.bash_profile?

Will
  • 24,082
  • 14
  • 97
  • 108
user1530249
  • 1,047
  • 3
  • 19
  • 28

1 Answers1

9

Yes, you can just run:

source ~/.bash_profile

Or:

. ~/.bash_profile

This will reload/re-source the .bash_profile in the current shell.

I put this command in my ~/.bash_profile for convenience:

alias reprofile='source ~/.bash_profile'

Then I just type reprofile or repro TAB.

Will
  • 24,082
  • 14
  • 97
  • 108