dotfiles/modules/cli/bin/cheat.nix

9 lines
147 B
Nix

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