Oliver Davies
ddd32822b1
feat(scripts): add git-bare-clone
2023-11-14 21:17:26 +00:00
Oliver Davies
5303c1ae9c
fix(scripts): fix incorrect item
2023-11-04 20:21:13 +00:00
Oliver Davies
ea6a382edc
feat(scripts): add git-sync
2023-10-11 18:42:05 +01:00
Oliver Davies
5763900b5f
fix(scripts): vendor files causing reloads
...
Ignore the `vendor` directory and some others as it was causing the
script to reload when it wasn't expected.
Whilst I'd expect it to be ignored if I specified the path to look at as
something like `web/modules/custom`, but it still seems to trigger the
command and it seems a lot more stable since adding this.
2023-10-03 18:14:37 +01:00
Oliver Davies
b659f491ea
fix(scripts): shebang and exit code
2023-09-02 10:41:00 +01:00
Oliver Davies
43a1ad8592
chore(zsh): remove dev and develop
...
These aren't needed since adding `direnv`.
2023-08-30 13:30:30 +01:00
Oliver Davies
e53561fb85
fix(scripts): don't stop watching on error
2023-08-22 23:05:06 +01:00
Oliver Davies
7fecbc9343
feat(scripts): add watch-changes
...
Based on 2d235c4c71/bin/watch-changes
.
2023-08-21 23:17:36 +01:00
Oliver Davies
624faf959c
refactor: restructure my Code directory
...
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.
2023-08-07 09:53:33 +01:00
Oliver Davies
dae27fdef8
fix(scripts): use Flake by default if it exists
2023-07-20 09:26:31 +01:00
Oliver Davies
648e9ee023
feat(scripts): add develop
...
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.
2023-07-19 11:38:50 +01:00
Oliver Davies
9980f80e0b
feat(scripts): name the service name configurable
2023-07-18 20:51:41 +01:00
Oliver Davies
0348b260be
refactor(new-drupal-module): use git
2023-07-09 16:34:53 +01:00
Oliver Davies
93e04a554b
feat: add new-drupal-module
...
Create a new Drupal module based on my Drupal Module template -
https://github.com/opdavies/drupal-module-template
2023-07-09 12:27:16 +01:00
Oliver Davies
0eee846185
fix(scripts): update paths
2023-06-13 19:57:25 +01:00
Oliver Davies
1cc14b6a80
feat(scripts): push with --no-verify
2023-06-13 19:52:32 +01:00
Oliver Davies
5c077db0e5
chore(tag-release): add output message
2023-05-16 19:56:05 +01:00
Oliver Davies
47e2189487
fix(tag-release): accept no arguments
...
HEAD should be used as the default value if no value is passed for the
SHA value.
2023-05-16 19:55:31 +01:00
Oliver Davies
fdd48ba14d
feat(scripts): stop all Docker containers
2023-05-10 12:36:54 +01:00
Oliver Davies
575e0f694b
fix(tmux): find
warning when using t
function
...
Fixes #51
2023-04-24 19:28:35 +01:00
Oliver Davies
455cbf3bfc
feat: add import-gzip-database script
2023-04-16 20:54:26 +01:00
Oliver Davies
140b9c13a0
feat: add create-script and tag-release
2023-04-14 10:20:44 +01:00
Oliver Davies
3d10ad02db
chore: delete unused bin scripts
2023-04-14 10:06:23 +01:00
Oliver Davies
017973b0b4
fix: incorrect shebang
...
Fails on NixOS before making this change.
2023-04-08 09:45:07 +01:00
Oliver Davies
f1391bc6af
chore: update script names
2023-02-07 20:24:36 +00:00
Oliver Davies
a68a460131
Add bin scripts
2023-01-30 22:00:53 +00:00
Oliver Davies
ee44c41652
chore: rename tmux-sessioniser
...
- Rename `tmux-sessioniser` to `t`.
- Search only within the `~/Code` directory instead of using zoxide.
2022-12-19 09:39:39 +00:00
Oliver Davies
7cfdca5a06
feat: add and use zoxide
2022-10-12 07:59:47 +01:00
Oliver Davies
459428a979
refactor: combine bin directories
2022-10-11 22:09:42 +01:00
Oliver Davies
f64b58d6f5
fix: update bash path
2022-10-03 17:46:49 +01:00
Oliver Davies
f2ac465543
feat(bin): add tmuxinator-fzf
...
Add a script that uses fzf to select and open a tmuxinator project.
2022-06-01 00:15:01 +01:00
Oliver Davies
a1554f5607
chore(dotfiles): allow setting the dotfiles path
...
Allow overriding the dotfiles directory using the `DOTFILES_DIR` variable.
2022-05-31 23:26:30 +01:00
Oliver Davies
ce42ad67d8
fix(dotfiles): clone or update the dotfiles repo
2022-04-26 20:57:31 +01:00
Oliver Davies
c7c6acdd9b
chore(dotfiles): use Ansible Vault password file
2022-04-26 20:55:52 +01:00
Oliver Davies
c8dca4e168
feat(dotfiles): install Ansible
2022-04-26 14:43:21 +01:00
Oliver Davies
7ee57545ce
feat(*): allow for filtering the playbook by role
...
Allow for appending ansible-playbook arguments to the dotfiles script,
and automatically applying tags to the included roles.
For example:
`./bin/dotfiles --tags=neovim`
2022-04-20 21:45:45 +01:00
Oliver Davies
093df0ac09
chore(*): remove WSL checks
...
This is no longer needed since roles can be excluded within the
`~/.config/dotfiles/values.yaml` file.
2022-04-20 21:42:37 +01:00
Oliver Davies
5c0bf2c712
chore: automatically skip tags if in WSL
2022-03-31 00:19:57 +01:00
Oliver Davies
dd14486223
feat(git): configure local settings
2022-03-30 23:58:15 +01:00
Oliver Davies
5390e77716
feat: add dotfiles
script
2022-03-30 23:41:06 +01:00
Oliver Davies
b5dabaf9fc
chore(tmux): search in ~/Documents/Books
2021-09-24 12:54:07 +01:00
Oliver Davies
8e3c3adaa5
Remove tat command and automatically loading tmux
...
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.
2021-09-17 22:38:00 +01:00
Oliver Davies
d39bfee514
fix: Make tmux-sessioniser work outside of tmux
2021-09-17 22:35:53 +01:00
Oliver Davies
e699c03b90
fix: sort directory list before piping to fzf
2021-09-17 21:26:34 +01:00
Oliver Davies
282fe69810
fix: ignore directories starting with a period
2021-09-17 21:25:49 +01:00
Oliver Davies
73e76b4d97
feat: add tmux-sessioner script
...
Add a script for quickly navigating between directories using fzf and
tmux sessions. Executable within zsh and Vim.
2021-09-17 19:42:11 +01:00
Oliver Davies
7fed1cf922
Use stow for managing dotfiles
2021-07-27 14:38:40 +01:00
Oliver Davies
e76f02f64b
git: Simplify the git-opr command
...
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.
2021-05-21 23:26:21 +01:00
Oliver Davies
fc8cdb3ee4
git: Add create-new-tracking-branch command
2021-05-21 23:26:21 +01:00
Oliver Davies
c52b1f4f90
Use shorter prefix for branch names
2021-04-18 16:31:18 +01:00