I want to know if it's possible to create keywords (similar to workflow keywords in alfred) for certain terminal commands. For example instead of typing:
php artisan serve
I want to type:
pas
while executing the above command.
I want to know if it's possible to create keywords (similar to workflow keywords in alfred) for certain terminal commands. For example instead of typing:
php artisan serve
I want to type:
pas
while executing the above command.
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.