02 December 2024

Linus Alias or Shortcut using Bash Function

Open ~/.bashrc and add the below function.
artisan() {
docker-compose exec php artisan "$@"
}
Reload the shell configuration.
source ~/.bashrc
Use the alias or shortcut.
artisan make

No comments:

Post a Comment