Support displaying previous commands with down/up key in the shell