dotfiles/bin/cheat

4 lines
90 B
Bash
Executable File

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