for our web application we use useful commands such as :
php artiasn
php artisan serve
composer update
php artisan view:clear
and now i want to make alias for them into ~/.bash_profile
alias ps ="php artisan"
alias serve="php artisan serve"
alias cu="composer update"
alias vc="php artisan view:clear"
now when i try to reload the file by using source ~/.bash_profile
i get this error:
.bash_profile:1: php artisan not found
I thought i should use cd
for change to the directory before. I got the error again. for example:
alias ps ="cd /User/myname/Desktop/project php artisan"