Articles & Code Snippets

How to add $PATH variable value to Debian

How to place composer's system-wide vendor bin directory in your $PATH, so the laravel executable can be located by your system.

To set the $PATH permanently, set the path in your startup file. This directory exists in different locations based on your operating system; however, here is how you can do it in Debian.

Edit the startup file:

nano ~/.bashrc

And paste these lines at the end of the file:

alias laravel='~/.config/composer/vendor/bin/laravel'
export PATH="$HOME/.composer/vendor/bin:$PATH"

restart terminal with:

source ~/.bashrc