As described in
https://difftastic.wilfred.me.uk/git.html#difftastic-by-default, the
`--ext-diff` option needs to be used for difftastic to be used on
commands other than `git diff`, such as `git show` or `git log`.
> This only applies to git diff. For other git commands, you still need
to specify --ext-diff, or use an alias as described above.
```shell
$ git diff
$ git show HEAD --ext-diff
$ git log -p --ext-diff
```
> Conversely, if you need to copy/paste a diff in the standard diff
format, you can use git diff --no-ext-diff.
Migrate from `zsh-expand` to `zsh-abbr` as it seems more performant and
isn't giving me unwanted expansions, such as when typing `run` within
this repository and it completing to something else.
Whilst Home Manager does have `programs.zsh-attr`, there isn't an option
for setting global abbreviations that expand anywhere in the command,
which I need to replace global ZSH aliases such as `G` which expands to
`| grep`.
For now, I've installed `zsh-abbr` via zplug and am creating the
`user-abbreviations` file using Home Manager where I can use `attr -g`
for global aliases.
If or when support is added for global abbreviations in Home Manager,
I'll switch to `programs.zsh-abbr.abbreviations`.
`programs.zsh.shellAliases` is still used for aliases that shouldn't
expand, whereas everything else has been moved to abbreviations.
* Move aliases into `programs.zsh.shellAliases` and
`programs.shellGlobalAliases`.
* Use the `MenkeTechnologies/zsh-expand` plugin instead of using custom
expansion code.
https://github.com/MenkeTechnologies/zsh-expand
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.
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.