The take
command creates a new directory and changes to it,
thus eliminating the need to type the two commands mkdir
and cd
.
The take
will also create intermediate directories as needed.
# this
$ take /path/to/new/directory
# is the same as this
$ mkdir -p /path/to/new/directory && cd /path/to/new/directory
# or this
$ mkdir -p /path/to/new/directory
$ cd /path/to/new/directory
- Use
take /new/dir
to replacemkdir -p /new/dir && cd /new/dir
workflow