Hi guys I tried to add new directory to the PATH, but instead appending I overwrote it. Is there any way to restore those default paths?
            Asked
            
        
        
            Active
            
        
            Viewed 4,383 times
        
    0
            
            
        - 
                    Please note that when asking questions like this, it's useful to describe what you *actually did*, so we don't have to guess. – Greg Hewgill Apr 10 '11 at 03:52
2 Answers
2
            
            
        If you changed your PATH in a Terminal shell, simply close that Terminal window and open a new one. Changes to environment variables are local to the shell in which you change them (and any subshells created by that one).
 
    
    
        Greg Hewgill
        
- 951,095
- 183
- 1,149
- 1,285
- 
                    this certainly worked, but leaves the question, how do I permanently write to PATH? – speedynomads Jul 03 '13 at 21:24
1
            
            
        Just restart your terminal that will assign variables based on your .profile or .bashrc ( if you are running bash )
 
    
    
        zellio
        
- 31,308
- 1
- 42
- 61
