Created
          August 8, 2016 21:42 
        
      - 
      
- 
        Save oviniciusfeitosa/9189e0d02cdfd969769f60d54f54e16d to your computer and use it in GitHub Desktop. 
    How to set "~/.composer/vendor/bin" directory in your PATH?
  
        
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | To put this folder on the PATH environment variable type | |
| export PATH="$PATH:$HOME/.composer/vendor/bin" | |
| This appends the folder to your existing PATH, however, it is only active for your current terminal session. | |
| If you want it to be automatically set, it depends on the shell you are using. For bash you can append this line to $HOME/.bashrc using your favourite editor or type the following on the shell | |
| echo 'export PATH="$PATH:$HOME/.composer/vendor/bin"' >> ~/.bashrc | |
| In order to check if it worked, logout and login again or execute | |
| source ~/.bashrc | |
| on the shell. | |
| PS: For other systems where there is no ~/.bashrc, you can also put this into ~/.bash_profile | |
| Font: http://stackoverflow.com/questions/25373188/laravel-installation-how-to-place-the-composer-vendor-bin-directory-in-your | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment