Rewrote prompt plugin to use readline