Improve completions to include query history and aliases