Just installed doctrine. I found if I use command "doctrine" straight away it works but not working with sudo. When I typed in
sudo doctrineit complains
sudo: doctrine: Command not foundThen I tried to use full path of doctrine with sudo which worked. So I think this should be caused by that sudo command does not use the personal path environment.
Using full qualified path every time is annoying.
Create a file at
alias sudo='sudo env PATH=$PATH $@'Logout and login again.