Today I updated git-delta via brew and started seeing the following error message in all my new shells:
-bash: complete: nosort: invalid option name
Turns out the bash_completion.d script included in delta uses nosort, which doesn't exist until Bash 4.4, which I don't have (native macOS bash is currently 3.2.57 for me).
So I added a check for the version, ~blatantly stolen~ heavily inspired from what cobra does.
Today I updated
git-delta
viabrew
and started seeing the following error message in all my new shells:Turns out the
bash_completion.d
script included in delta usesnosort
, which doesn't exist until Bash 4.4, which I don't have (native macOS bash is currently 3.2.57 for me).So I added a check for the version, ~blatantly stolen~ heavily inspired from what cobra does.