Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

What is the default command line editing mode for bash?

I have been playing around with the command line editing modes in bash.The problem is that i have added lines in bashrc to toggle the vi and emacs mode as per this link. Toggle bash editing mode

set -o vi
bind '"\ee": emacs-editing-mode'
set -o emacs
bind '"\ee": vi-editing-mode'

According to the order, the mode set in my bash shell would be emacs mode. And it is. It works fine, except that now, my home,end keys translate to tilde symbols. Any help?

share|improve this question

The default mode is Emacs, but after your snippet, it stays in Vi mode. Append another set -o emacs to change it.

Regardless of that, my Home and End keys still work. The tildes you get appear to have a different cause.

share|improve this answer
I am sorry, i put the order wrong in the question.Edited it now. – woodstok Oct 19 '12 at 6:22

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .