If you are an Oh My Zsh user, there is a
command that combines mkdir
and cd
, take
:
$ take foo
This will make a directory called foo
and cd
into it. If the directory
already exists, it will just perform cd
and not alert you that the directory
already existed.
Oh My Zsh provides many other pre-configured aliases that can prove useful.
The definition of take
can be found using the which
command.