#compdef ind

_ind() {
  local state ret=1
  _arguments ':directory:_files -/' '*::arguments:->normal' && ret=0

  if [ -n "${state}" ]; then
    pushd -q "$words[1]" || return 1
    shift words
    (( CURRENT-- ))
    _normal && ret=0
    popd -q
  fi
  return ret
}
compdef _ind ind
