Hacker News new | ask | show | jobs
by adamhearn 1479 days ago
I put this in my ZSH profile.

  function cheat() {
      curl cht.sh/$1
  }
1 comments

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
    }