- SSH into your shared hosting using your preferred ssh client.
- Make sure you are in your home directory
cd ~ - Edit your shell configurations file
nano .bashrc(for Bash) ornano .zshrc(for Zsh) - Add the following line to the end of the file:
alias composer="php /usr/local/bin/composer2.phar"(This will use composer 2.5.5 at the time of writing this answer) - Save the file by pressing
CTRL+X, thenY, thenENTER - Reload your shell configuration by running the command
source ~/.bashrcorsource ~/.zshrc, depending on which shell you're using.
Digər dildə:
EN