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?

1
  • 1
    something like $ source ~/.bash_profile ? Commented Jul 11, 2016 at 0:59

1 Answer 1

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.

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.