c() {
  if [[ "$(find ~/Code/ -mindepth 2 -maxdepth 2 -name "$1" | wc -l)" -gt 1 ]]; then
    echo 'FATAL: multiple directories match, cannot select' >&2
    return 1
  fi
  cd ~/Code/*/$1
}

c() {
  if [[ "$(find ~/Code/ -mindepth 2 -maxdepth 2 -wholename "$1" | wc -l)" -gt 1 ]]; then
    echo 'FATAL: multiple directories match, cannot select' >&2
    return 1
  fi
  cd ~/Code/*/$1
}

Improve compat with GNU find in c()
shell: Improve compat with GNU find in c()

Fortunately, BSD find includes this option as well (explicitly for
compatibility with GNU find).
