add C-like readline/addhistory support to the interactive shell