Set hist_substpattern
Fix smart completion