added a linenoise-style prompt with history, bash keybindings, etc