I can't tell how many times I have wished for a command that would both create a directory and move to that directory. Basically, I would like the equivalent of the following:

```
mkdir -p /arbitrarily/long/path; cd /arbitrarily/long/path

```

but only having to type the `/arbitrarily/long/path` once, something like:

```
mk-cd /arbitrarily/long/path

```

I tried creating a script to do this, but it only changes the directory within the script. I'd like the directory in the shell to have changed as well.

```
#!/bin/bash
mkdir $1
cd $1
export PWD=$PWD

```

How might I be able to make this work?