Add `docs' matching for terminal