Hacker News new | ask | show | jobs
by repox 1473 days 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
    }