Commit graph

23 commits

Author SHA1 Message Date
Oliver Davies f766a15616 Alias cat to bat 2024-05-15 13:49:05 +01:00
Oliver Davies 7b9e5c6cfc Add todo and til functions
Add helper functions to write text input into a `TODO.txt` or `TIL.txt`
file respectively.

Extracting this to a function means I'm not able to overwrite the
contents of a file by typing `echo "foo" > TODO.txt` or similar
accidentally and overwriting the entire file instead of appending to it.
2024-05-12 09:25:21 +02:00
Oliver Davies 475a2195c0 Configure lsd
See: https://github.com/lsd-rs/lsd
2024-05-11 01:55:59 +02:00
Oliver Davies 0a5815c116 Add the git root command
Add the `git root` command shown by Greg in his YouTube video:

https://www.youtube.com/watch?v=C5aRtq-Rtbg
2024-05-09 23:57:05 +01:00
Oliver Davies 5d3f7ef58f Override just command
If a `.ignored/justfile` exists, e.g. for open-source projects I can't
commit a `justfile` to, use it by default.
2024-05-09 23:40:30 +01:00
Oliver Davies 634ed23325 Override the ttyper command with a function
Set values for the number of words and languages, as there isn't a word
setting to add to a `config.toml` file.

This is based on https://www.youtube.com/watch?v=C5aRtq-Rtbg by Greg
Hurrell.
2024-05-09 23:31:43 +01:00
Oliver Davies c99f23be11 Source the zsh-fzf-history-search plugin 2024-05-05 11:55:58 +01:00
Oliver Davies d4f347186d Use a regular git clone 2024-04-24 22:08:38 +01:00
Oliver Davies 0bbd536e3e Use fzf for searching zsh history 2024-04-19 21:38:00 +01:00
Oliver Davies 0a54e63a16 Fix Bitbucket URL 2024-04-17 10:26:57 +01:00
Oliver Davies 39fa2a2fc5 Make clone work with HTTPS URL 2024-04-17 08:48:28 +01:00
Oliver Davies bbfdb0362d Add TODO for extracting the domain from HTTPS URLs 2024-04-17 07:41:56 +01:00
Oliver Davies c9b423c9a8 Fix repo path 2024-04-17 00:27:05 +01:00
Oliver Davies d0e42b602f Echo the git clone command before running it 2024-04-17 00:24:46 +01:00
Oliver Davies 51b6d6b8c5 Add a REPOS environment variable 2024-04-17 00:24:41 +01:00
Oliver Davies c0fabc4f20 Rename variable 2024-04-17 00:08:13 +01:00
Oliver Davies a1f4782b63 Use git bare-clone when cloning the repo 2024-04-17 00:07:42 +01:00
Oliver Davies a57d60e1b4 Fix GitLab and Bitbucket URLs
Remove GitLab and Bitbucket URLs when getting the user and repo name.
2024-04-16 23:04:42 +01:00
Oliver Davies d26ecee2ee Extract the remote URL from the repository URL 2024-04-16 18:06:30 +01:00
Oliver Davies 2074c748cb Create new sessions using bin/t 2024-04-16 18:02:36 +01:00
Oliver Davies 5a934bf843 Add clone ZSH function 2024-04-16 16:22:52 +01:00
Oliver Davies b1421c97e1 Format using nixfmt 2024-03-18 20:34:51 +00:00
Oliver Davies addad268e5 Rename system to lib 2024-02-29 08:24:01 +00:00
Renamed from system/shared/modules/zsh.nix (Browse further)