Insert `nixpkgs-review` commands to your terminal using native app communication (brotab)

Very often I found it pretty hard to type on my ZSH command line the nixpkgs-review commands I want to run. These commands usually include all 4 --systems, and I always want to put a note for the command line history using a ZSH # comment. Using brotab, I realized I can write a ZSH widget that would take a PR open in my browser, and insert the nixpkgs-review command I want (including the # comment) without effort. Here’s the ZSH widget, also part of my dotfiles repository:

2 Likes