title: Different bash prompt for different vi editing mode?
body: <p>When using vi mode (set -o vi) with Bash, it would be nice to have a prompt that depends on the mode you are currently in (insert or command). How does one find out this editing mode?</p>
  
  <p>B.t.w, this seems to be possible in <a href="http://pthree.org/2009/03/28/add-vim-editing-mode-to-your-zsh-prompt/" rel="noreferrer">ZSH</a>:</p>