dotfiles/bin/cheat

3 lines
92 B
Bash
Executable file

#!/bin/bash
cat="$(which bat 2>/dev/null || which cat)"
curl -s "cheat.sh/$1" | eval "$cat"