dotfiles/modules/cli/bin/cheat.nix

10 lines
147 B
Nix
Raw Normal View History

2021-12-26 23:34:42 +01:00
{ pkgs }:
pkgs.writeShellApplication {
name = "cheat";
runtimeInputs = with pkgs; [ curl bat ];
text = ''curl -s "cheat.sh/$1" | bat'';
}