for example;

if [ 'readline is vi-command' ]; then
  echo 'normal mode'
  echo 'insert mode'

I really don't have any idea how to do this and I can't seem to find anything on the man pages either, or is it possible at all?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.