restore tab completion for commands. closes #1172