top | item 31598759 (no title) adamhearn | 3 years ago I put this in my ZSH profile. function cheat() { curl cht.sh/$1 } discuss order hn newest repox|3 years ago I 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 }
repox|3 years ago I 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 }
repox|3 years ago