Shell programs are a joy. Today I wrote one that runs git push
in all of the
directories that I tend to work in—it’s useful for when I’m working offline
and later want to push all of my work when I have a network connection.
% cat ~/.config/pushall/directories
$HOME
$HOME/src/town
$HOME/src/algebraic
$HOME/src/membrane
$HOME/src/binutil
$HOME/src/new-system
$HOME/src/blks
%
% pushall
blks: Everything up-to-date
town: To github.com:littleroot/town.git
1df06c0..6fbf6a4 main -> main
new-system: Everything up-to-date
binutil: Everything up-to-date
algebraic: Everything up-to-date
ns: Everything up-to-date
membrane: Everything up-to-date
%
I love programs that use a THING: RESULT output format.