+/config

my dotfiles and nix configuration

git clone https://git.julia.blue/+/config

Julia RyanFix git-coauthor041c9d9

main
339 B9 linesraw
1{ writeShellApplication, fzf, choose }: writeShellApplication {
2  name = "git-coauthor";
3  runtimeInputs = [ fzf choose ];
4  # TODO: helptext
5  text = ''
6    selection="$(git shortlog -nse | choose 1.. | rg -Fv "$(git config user.email)" | fzf)"
7    git commit --amend --no-edit --trailer --if-missing "Co-authored-by: $selection"
8  '';
9}