新鲜bash 4.3和readline 6.3有东西给你们..从changelog:
4. New Features in Readline j. New user-settable variable,show-mode-in-prompt,adds a characters to the beginning of the prompt indicating the current editing mode.
所以放
set show-mode-in-prompt on
到/ etc / inputrc或〜/ .inputrc(thx stooj)应该影响你的所有readline使能程序;