Commit graph

158 commits

Author SHA1 Message Date
Oliver Davies abc0e5d429 Switch back to nixpkgs-unstable by default 2024-11-12 20:14:21 +00:00
Oliver Davies e4cd1a0b81 Add devenv 2024-11-12 00:18:38 +00:00
Oliver Davies 81303f4c09 Re-enable the starship prompt 2024-11-12 00:18:15 +00:00
Oliver Davies 3c7aa3f03e Organise NixOS and Home Manager modules 2024-11-05 23:59:03 +00:00
Oliver Davies 1a627d1828 Use the unstable overlay in other places 2024-11-05 16:01:00 +00:00
Oliver Davies cd25bf96e9 Remove notetaker script 2024-11-05 07:45:36 +00:00
Oliver Davies 4da89a329f Move custom Vim plugins back to an overlay 2024-11-05 00:02:51 +00:00
Oliver Davies c155c36270 Add an abbreviation for git branch 2024-11-04 23:08:25 +00:00
Oliver Davies 11a75714f9 Prepare for switching back to unstable 2024-11-03 19:57:04 +00:00
Oliver Davies 3cc5c97178 git: remove unstage alias and move it to a zsh
...abbreviation
2024-10-30 14:52:31 +00:00
Oliver Davies 1bc80ccef3 Update t script
Stop automatically running `.tmux` files as I don't always want
everything to run when opening a project. This also simplifies the code
within the script.

This also refactors the logic for creating and switching sessions as it
didn't work 100% of the time. This is nearer to Jess Archer's version of
the script with less error output and changes needed for shellcheck.
2024-10-28 16:29:22 +00:00
Oliver Davies a7f2d90542 Order zsh abbreviations alphabetically 2024-10-28 12:09:19 +00:00
Oliver Davies 7aa65d419e Add more Git abbreviations 2024-10-28 12:08:57 +00:00
Oliver Davies 576e8c37a2 Re-add nvim-tmux-navigation
Easier navigation between Neovim and tmux panes.
2024-10-26 16:09:10 +01:00
Oliver Davies cffba6b6b6 Re-add en.utf-8.add spellfile 2024-10-26 15:45:29 +01:00
Oliver Davies 80927b1df2 Add deliver script
Based on Jess Archer's script, this executes a command within a
specified Docker Compose service or, if no matching one is not found,
will execute it locally.
2024-10-25 22:06:26 +01:00
Oliver Davies c1e85f01d9 Add more Git-related abbreviations 2024-10-25 20:51:11 +01:00
Oliver Davies 8d07d76e2b Replace nil_ls with nixd 2024-10-23 21:07:26 +01:00
Oliver Davies 86308429dd Update Neovim to 0.10.1 2024-10-09 19:15:02 +01:00
Oliver Davies 8244e157fd Re-add Neovim configuration files
Re-included from https://github.com/opdavies/opdavies.nvim.
2024-10-09 19:04:40 +01:00
Oliver Davies 634bf71c6e Add rci abbreviation 2024-10-09 17:46:45 +01:00
Oliver Davies 0d1065e73c Use t again 2024-10-09 17:46:45 +01:00
Oliver Davies 3b0aa0aa34 Update abbreviations 2024-10-06 09:55:15 +01:00
Oliver Davies 9fbe7c1fec Revert "Remove tmux"
This reverts commit a7556575ac.
2024-09-25 21:33:55 +01:00
Oliver Davies 2265173564 Include the tfw sub-directories 2024-09-23 10:47:00 +01:00
Oliver Davies 73a893143e Update tfw directory 2024-09-23 10:46:41 +01:00
Oliver Davies e17aa080ba Nicely reload system units when changing configs 2024-09-23 02:32:07 +01:00
Oliver Davies f5c7b2ae10 Re-add Documents 2024-09-13 20:19:00 +01:00
Oliver Davies 098d714168 Use create-zellij-session 2024-09-13 20:18:20 +01:00
Oliver Davies a7556575ac Remove tmux
After using it as a daily driver from the last week or so, I'm switching
to Zellij.

https://zellij.dev
2024-09-04 08:00:59 +01:00
Oliver Davies edfa2b7c22 Only show the names of the directories
Remove the ~/Code prefix from the list of items.
2024-09-04 07:55:50 +01:00
Oliver Davies 2d91ea65a4 Update abbreviations 2024-09-04 00:00:16 +01:00
Oliver Davies 56ce8ba735 Add create-zellij-session script
Based on t.nix, this creates or attaches to a Zellij session based on a
given directory.
2024-08-31 17:17:32 +01:00
Oliver Davies 9f4e5bebf8 Add the Zellij default configuration
Used `zellij setup --dump-config` to get the configuration and saved it
into its own file.
2024-08-29 09:44:59 +01:00
Oliver Davies 4406690f63 Set Zellij theme 2024-08-29 02:21:19 +01:00
Oliver Davies c62f741a90 Add a default directory when using yt-dlp
Always place downloaded videos in `~/Videos`.
2024-08-28 13:00:36 +01:00
Oliver Davies 7c6d68a589 zsh: add code directory to CDPATH 2024-08-28 13:00:09 +01:00
Oliver Davies b9ff90afc0 Add watchexec 2024-08-28 12:58:02 +01:00
Oliver Davies 5fe35808d2 Trying out zellij 2024-08-24 23:36:39 +01:00
Oliver Davies 50fc641743 Update abbreviations 2024-08-21 09:36:15 +01:00
Oliver Davies a1c356a1f5 Update aliases, abbreviations and snippets 2024-08-21 01:12:55 +01:00
Oliver Davies a1ef2d1402 Update path to jq 2024-08-20 21:51:15 +01:00
Oliver Davies 4d4d65d812 Refactor: inject the username into the source path 2024-08-20 21:01:50 +01:00
Oliver Davies ce5b4fa0a1 Create export-video-list script
Create a `export-video-list` script that exports all the video files on
my external hard drive to a JSON file so I can easily see what videos I
have without needing to get and plug in the drive.

I can easily view it using `bat` or `jq` and combine it with `grep` to
search for a specific video - e.g. `cat ~/video.json | grep -i nix`
(`-i` makes the search case-insensitive).
2024-08-20 19:48:57 +01:00
Oliver Davies 13c83fb8b4 Hide error about nested tmux sessions 2024-08-20 17:07:04 +01:00
Oliver Davies b36ca8086e Add timer script for desktop machines
Based on https://github.com/sdaschner/dotfiles/blob/master/bin/timer and
https://github.com/sdaschner/dotfiles/blob/master/bin/_timer.

Seen in https://youtu.be/8CZIv3MJvic?si=PiVPM_vwuUKI7ak3&t=1460.
2024-08-20 14:34:32 +01:00
Oliver Davies b30909b32a zsh: add some suffix aliases
Aliases that run when files of a matching type are opened.

See https://youtu.be/8CZIv3MJvic?si=QVqtaCDNaygs2qaE&t=670.
2024-08-19 22:18:02 +01:00
Oliver Davies c712a1b254 Add aliases for curl
Use the cursor position to not have a trailing space after expanding the
abbreviation, making it easier to type any following characters.

See https://zsh-abbr.olets.dev/usage.html#place-the-cursor and
https://github.com/olets/zsh-abbr/discussions/97
2024-08-19 22:10:29 +01:00
Oliver Davies 5dac3f312d Add an abbreviation for C to copy to the
...clipboard using `xclip`

This also works in WSL.
2024-08-19 21:41:42 +01:00
Oliver Davies 74c6c2f8dc Always install xclip, not just on desktop 2024-08-19 21:41:28 +01:00