bash: mkdir + cd with one command
function mkcd() { [ -n "$1" ] && mkdir -p "$@" && cd "$1"; }Example:
user@host:~$ cd work user@host:~/work$ mkcd website.com/{html,src,stuff} user@host:~/work/website.com/html$
function mkcd() { [ -n "$1" ] && mkdir -p "$@" && cd "$1"; }Example:
user@host:~$ cd work user@host:~/work$ mkcd website.com/{html,src,stuff} user@host:~/work/website.com/html$