I recently restructed the contents of my `~/Code` directory so that
repositories are grouped by their provider and organisation.
For example, my `dotfiles` are now located at
`~/Code/github.com/opdavies/dotfiles`.
Likewise, `build-configs` is now located at
`~/Code/github.com/OliverDaviesLtd/build-configs` as it's within the
`OliverDaviesLtd` organisation.
As well as `~/Code/github.com`, I also have `~/Code/bitbucket.org` for
Bitbucket repositories. These are also grouped within subdirectories for
each organisation.
This change means I need to update any reference to the old `dotfiles`
location to the new one and I can update the `t` function to adjust the
min and max depth it uses to find directories.
Add a `develop` script that runs either Docker Compose or Nix depending
on which files are present within the repository.
Also add a `dev` alias for the `develop` script.
Allow for appending ansible-playbook arguments to the dotfiles script,
and automatically applying tags to the included roles.
For example:
`./bin/dotfiles --tags=neovim`
This isn't needed now that the tmux-sessioniser is working, and it also
means that there isn't a weird "System32" session automatically created
within WSL2, or with my username in Pop!_OS.
Rewritten in bash and as a wrapper around GitHub's `gh` command.
- Pushed an unpushed branch to origin.
- Opens an existing pull request if one exists.
- Creates a new pull request if one doesn't exist.
Remove the `p` and `pf` aliases that previously only worked for PHPUnit,
and re-add them as functions that run either PHPUnit or Pest PHP based
on the project dependencies.
The checking is done within the `phpunit-or-pest` script and then used
within the new `p` and `pf` functions.
See
1e7fa50da0.
> This commit introduces `git-master-to-main-wrapper`, which seamlessly
prefers `main` to `master` but works fine with repos that do use
a `master` branch.