DDEV
Aliases inside the web container
ddev ssh drops you into a container that doesn't have my usual aliases. DDEV copies anything in homeadditions into the container's home directory.
| Scope | Path | Committable |
|---|---|---|
| This project only | .ddev/homeadditions/.bash_aliases | Yes |
| Every project on this machine | ~/.ddev/homeadditions/.bash_aliases | No |
Contents are just normal aliases:
alias ll='ls -alFh'
Restart the project for it to take effect.
ddevinit.sh
~/.dotfiles/wp-scripts/ddevinit.sh bootstraps a new WordPress project. Run it inside an empty project folder.
What it does, in order:
- Prompts for a project name, defaulting to the folder name
- Pulls my standard
.gitignorefrom a gist into./public - Extracts WordPress core from a local zip in the Dropbox update-server folder, no download needed
git init- Interactive plugin picker via
fzf. ACORE_PLUGINSlist is always copied, then you multi-select any extras - Same again for themes
- Configures and starts DDEV, commits, then
ddev core installwith the standard local admin credentials
The plugin and theme sources come from the Dropbox folder, with a primary path on the external drive and a fallback on the internal one. If it exits early complaining about paths, the external drive isn't mounted.
There's also an older wpinit.sh in the same folder, pre-DDEV.