Support command completion.
When user press twice 'tab', It can complete whole command.