Commit graph

548 commits

Author SHA1 Message Date
Oliver Davies d4abb0270f dconf: Set a fixed number of workspaces 2021-05-07 20:18:55 +01:00
Oliver Davies 25fcc5279e vim: Disable arrow keys in normal mode 2021-05-07 20:18:55 +01:00
Oliver Davies 1b856e361f vim: Add intelephense configuration 2021-05-07 20:18:55 +01:00
Oliver Davies 343bf96501 vim: Add coc-settings.json 2021-05-07 20:18:55 +01:00
Oliver Davies b58186b38e vim: Add package.json for coc-extensions 2021-05-07 20:18:55 +01:00
Oliver Davies de45efa883 vim: Move NERDTree config after leader key setting 2021-05-07 20:18:50 +01:00
Oliver Davies 28cb119443 vim: Fix spacing 2021-05-05 22:43:27 +01:00
Oliver Davies fcdb23e156 vim: Add christoomey/vim-tmux-navigator 2021-05-04 22:38:09 +01:00
Oliver Davies 9ffd8474bd vim: Add preservim/nerdcommenter 2021-05-04 12:40:43 +01:00
Oliver Davies 8b29ff9e17 vim: Replace vimrc with init.vim (nvim) 2021-05-03 22:25:25 +01:00
Oliver Davies 807632fc82 Fix ignored files 2021-05-03 22:10:54 +01:00
Oliver Davies 573a6972ff vim: Remove .ideavimrc 2021-05-03 22:10:54 +01:00
Oliver Davies d43ab6480c Remove Sublime Text 3 configuration 2021-05-03 22:10:54 +01:00
Oliver Davies a6bf275156 Add mappings for switching and moving workspaces 2021-05-01 21:11:07 +01:00
Oliver Davies c52b1f4f90 Use shorter prefix for branch names 2021-04-18 16:31:18 +01:00
Oliver Davies 2d1a5d682a zsh: Include aliases in the current directory 2020-11-23 14:24:07 +00:00
Oliver Davies af1d0b4483 zsh: Re-implement pbcopy and pbpaste 2020-11-11 11:37:38 +00:00
Oliver Davies 374f036b79 git: Refactor to be based on the gh CLI tool 2020-11-11 07:18:05 +00:00
Oliver Davies adac636d47 git: Use __git_ps1 in Git prompt
Use the `__git_ps1` function within the Git prompt to give additional
information when operations like a rebase is happening.
2020-11-10 15:43:17 +00:00
Oliver Davies 66e5d7b1ca Prevent publishing a main branch 2020-10-12 09:15:27 +01:00
Oliver Davies dbb272f188 git: Set email address for Inviqa repos 2020-10-11 00:24:02 +01:00
Oliver Davies fdaec03018
Use full username for branch prefix 2020-09-13 21:56:19 +01:00
Oliver Davies 258b37a900 git: Update global gitignore filename 2020-09-10 14:45:16 +01:00
Oliver Davies 7538e88f7c zsh: Include snap binaries in PATH 2020-09-10 14:44:40 +01:00
Oliver Davies 720f41b8b2 zsh: Change m from an alias to a function
Change `m` from an alias to a function to allow for passing additional
parameters.
2020-09-10 14:44:38 +01:00
Oliver Davies 1f4852e8c6 zsh: Auto-complete m as make 2020-09-03 08:08:55 +01:00
Oliver Davies 1117fbd76d zsh: Update m alias
Update the `m` alias to use a Makefile within the notes directory if
there is one, otherwise default to one in the current directory.
2020-09-03 08:08:53 +01:00
Oliver Davies e2285680b9 git: Ignore notes directories within projects 2020-08-17 10:15:29 +01:00
Oliver Davies 6ebaf2f21f git: Remove outdated files 2020-08-17 10:15:27 +01:00
Oliver Davies 33113941f1 git: Rename global gitignore file 2020-08-17 10:15:20 +01:00
Oliver Davies fbb17f1f00 git: Tweak prompt colours 2020-07-30 16:21:32 +01:00
Oliver Davies 2f624af066 zsh: Run Composer with Docker 2020-07-30 01:46:00 +01:00
Oliver Davies b71aec495a zsh: Add Git commit SHA to prompt 2020-07-30 01:46:00 +01:00
Oliver Davies 18e81f9bd6 git: Add aliases for production and staging 2020-07-30 01:17:48 +01:00
Oliver Davies 41d320fc67 Move links into a list 2020-07-23 16:24:23 +01:00
Oliver Davies 4c663645d3 Ignore everything by default
Ignore everything by default unless it has been explicitly un-ignored.

For now, everything that was previously added will continue to work, but
I'll build up the allowed list of files going forward as needed.
2020-07-23 16:24:23 +01:00
Oliver Davies c78a8465a6 Remove the shorten function 2020-07-23 16:24:23 +01:00
Oliver Davies a85ff2e8bb Run phpunit or pest depending on the project
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.
2020-07-23 16:24:23 +01:00
Oliver Davies ce9a65340e Add m alias for make 2020-07-22 10:49:08 +01:00
Oliver Davies b35d9a938a git: Add an init template, use it to create the main branch
See
56d614f806.

> This change adds a HEAD file to the Git template with a different ref.
This means that new repositories will commit to a "main" branch by
default instead.
2020-07-20 01:47:34 +01:00
Oliver Davies 0f797c6ffe Prefer "main" to "master"
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.
2020-07-19 22:06:30 +01:00
Oliver Davies 2e8c717036 Enable nvm 2020-07-14 15:08:57 +01:00
Oliver Davies 0449cf22ae Add link to Thoughtbot dotfiles 2020-06-21 00:38:47 +01:00
Oliver Davies d7e43100bc zsh: Fix "no matches found: HEAD^" error
Add `options.zsh` and use `setopt NO_NOMATCH` to pass the bad match onto
the command as per
https://github.com/ohmyzsh/ohmyzsh/issues/449#issuecomment-6973326.

Fixes #14
2020-06-21 00:30:14 +01:00
Oliver Davies e0c9014ec0 zsh: Enable extendedglob
Enable the extendedglob option, which is needed for the scripts in the
`configs/post` directory to load correctly.

This includes the completion script that is needed to fix #12 and #13.
2020-06-21 00:13:38 +01:00
Oliver Davies 40fed34898 Add drupalorg CLI script 2020-06-21 00:13:38 +01:00
Oliver Davies 1dc9b4c7f5 Add Sublime Text preferences 2020-06-10 21:08:00 +01:00
Oliver Davies d51de5bb17 Revert "zsh: Use $_ANTIGEN_INSTALL_DIR for macOS"
This reverts commit 29171bba91.
2020-06-10 11:42:19 +01:00
Oliver Davies cb22f5ae67 Un-dot the bin directory 2020-06-10 02:20:19 +01:00
Oliver Davies 62e2db48ec zsh: Add comment for $TERM_PROGRAM 2020-06-09 22:35:43 +01:00