No such thing as a Post-Push Hook

Tonight I was hacking away at some more little automations to make this TIL nice and presentable over at https://til.andrew-quinn.me/. Git has a wonderful system called “hooks” which live under .git/hooks/, come loaded with examples so you can remember how they all work, and – surprisingly – don’t contain a local post-push hook! There’s post-receive, but that expects to be able to run a script on the server side – not helpful when I’m pushing to one of Github’s many, many anonymous boxes. ...

November 18, 2023

Multi-line string literals in Fish

The Fish shell has… interesting syntax for multi-line string literals. The only way I can reliably remember is to literally write them as multi-line literals, which does make a certain kind of brutalist sense: 1 2 3 4 5 6 7 8 9 function kiitos set thankyou '--- kiitos kaynnista ja tervetuloa uduelleen ---' echo $thankyou end kiitos reliably prints ...

November 17, 2023

Today I Learned (TIL) I learn a lot of new things every day. At some point I decided I wanted to have a public record of some of them, so I wrote a shell script to let me open a terminal, type til, and immediately jot down whatever little tidbit I just came across. This repo is the result of that. Quickstart Trouble with all the programs I run in my various .fish scripts? Try Shell Bling Ubuntu, that should contain most of ’em. ...