Simple little zsh function that makes my life easier every day:

function newdir {
    if [[ $# != 1 ]]
    then
        emit-warning usage: newdir directory

        return 1
    fi

    mkdir -p $1 && cd $1
}
*****
Written on