dir

create a folder and enter into it

KLP

Installation

Just copy and paste the dir function below in your profile or do something like

mkdir -p ~/.bash
cd ~/.bash
git clone git://github.com/fibo/dir.git
echo "source ~/.bash/dir/fun.sh" >> ~/.bashrc

Usage

Simple as

dir /path/to/my/folder

Folder names with spaces are supported

dir ~/please dont/create folders/with spaces

Annotated source

dir() {
	mkdir -p "$*" && cd "$_"
}

License

MIT