Better bash completion of subcommands (#52)
Better bash completion of subcommands (#52)

* completion: only show init and gen when only valid commands

* if no experiments/jobs folder or if not in experiments with a ./jobs
  folder, it only completes to init
* if that isn't the case but we have no epochs, the only valid command
  is generate

* completion: if not prefix of command, search substr

* so now if you have `dimebox mit<TAB` it goes to `dimebox submit`,
  for example. This is strictly as a fallback so `dimebox i<TAB>`
  only goes to `dimebox init`.

dlatypov/dimebox,ledif/dimebox,ledif/dimebox