3 ms·function mkcd() { mkdir -p "$@" && cd "$1"; } supports multiple dirs and cd to the first one mkcd a b cby sandreas 6y agofunction mkcd() { mkdir -p "$@" && cd "$1"; } supports multiple dirs and cd to the first one mkcd a b c