Any way to create custom terminal keywords? [duplicate]
The ‘alias’ command defines aliases.
alias pas="php artisan serve"
The default shell is now zsh so you define this in ~/.zshrc.
Source the file . ~/.zshrc
for the change to take effect in the current shell.
Previously, you would define this in ~/.bash_profile. If you updated from an older version of macOS and haven’t changed your shell from bash to zsh as prompted, you’ll still need to use ~/.bash_profile.