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?
            Asked
            
        
        
            Active
            
        
            Viewed 4,440 times
        
    9
            
            
         
    
    
        Will
        
- 24,082
- 14
- 97
- 108
 
    
    
        user1530249
        
- 1,047
- 3
- 19
- 28
- 
                    1something like `$ source ~/.bash_profile` ? – pah Jul 11 '16 at 00:59
1 Answers
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