dotfiles/modules/cli/bin/cheat.nix

10 lines
147 B
Nix

{ pkgs }:
pkgs.writeShellApplication {
name = "cheat";
runtimeInputs = with pkgs; [ curl bat ];
text = ''curl -s "cheat.sh/$1" | bat'';
}