jb55 on Nostr: if you're lazy like me and just want to type `nip 26` to read a nip in your terminal: ...
if you're lazy like me and just want to type `nip 26` to read a nip in your terminal:
#!/usr/bin/env bash
mkdir -p ~/var/nips
n=$(printf "%02d\n" "$1")
curl -sL "https://raw.githubusercontent.com/nostr-protocol/nips/master/$n.md"; | pandoc -s -f markdown -t man - > ~/var/nips/$n.1
man ~/var/nips/$n.1
#!/usr/bin/env bash
mkdir -p ~/var/nips
n=$(printf "%02d\n" "$1")
curl -sL "https://raw.githubusercontent.com/nostr-protocol/nips/master/$n.md"; | pandoc -s -f markdown -t man - > ~/var/nips/$n.1
man ~/var/nips/$n.1