- add
wp-setup.shto your home directory - in terminal $
chmod +x wp-setup.shso we can execute this without admin permissions needed - add an alias in your terminal profile and source the profile...(see command in next step)
- $
echo '\n\n alias wpsetup="~/wp-setup.sh"' >> ~/.zshrc && . ~/.zshrc
Now, when you are ready run $ wpsetup in the folder you want to setup Wordpress locally in.
I use ~/wip/ folder for all code projects.
I would then $ cd ~/wip/ && mkdir wordpress-project/.
Then... $ cd ~/wip/wordpress-project && wpsetup.
The wpsetup is the new alias we created above in Setup Instructions.