How to place ~ / .composer / vendor / bin directory in PATH using .zshrc

This may be a very empty question, but I'm trying to install Homestead on my Mac. I follow the installation steps through http://laravel.com/docs/4.2/homestead , however there is a point during the installation process where it indicates "Be sure to place the ~ / symbol. Linker / provider directory / bin directory in your PATH, so the homestead executable will be found when you run the homestead command in your terminal. " How to do it using zsh? Thank!

+4
source share
4 answers

in any profile you use (.zprofile or .profile or something else), you should add the line:

export PATH = ~/.composer/vendor/bin:$PATH

source ~/.zprofile
+8

~/.bashrc :

PATH = "~/.composer//: {$ PATH}"

+2

In one of your source files in your home directory (~ / .bashrc or ~ / .zshrc)

export laravel=/Users/username/.composer/vendor/bin
export PATH="$laravel:$PATH"
+1
source

If your PATH is in the .bashrc file :

echo 'export PATH="$PATH:$HOME/.composer/vendor/bin"' >> ~/.bashrc

If your PATH is in the .zshrc file :

echo 'export PATH="$PATH:$HOME/.composer/vendor/bin"' >> ~/.zshrc
+1
source

All Articles