3 ms·
I put this in my ZSH profile. function cheat() { curl cht.sh/$1 }
by adamhearn 4y ago
I put this in my ZSH profile.
function cheat() {
curl cht.sh/$1
}
- repox 4y agoI have a similar setup: function cheat() { cheatcommand=$1 shift; IFS='+' str="$*" if [ "$#" -eq 0 ]; then curl cht.sh/$cheatcommand else curl cht.sh/$cheatcommand/$str fi }