#!/bin/sh
#
# take - create directory and cd into it
#
# note: this script needs to be sourced to be effective

if [ "$#" != 1 ]; then
  echo "Usage: $(basename "$0") <dir>" >&2
  exit 1
fi
mkdir -p "$1" || exit
cd "$1" || exit
