[oclug] terminal weirdness

Robert Brockway rbrockway at opentrend.net
Fri Feb 11 00:50:30 EST 2005


On Thu, 10 Feb 2005, Jon Earle wrote:

> The weird thing is the history behaviour... it's almost acting like it's
> been ross-bred with vi or something.  If I want the history, I have to hit

Gnu Readline, the library used to provide the cool command history feature 
in bash has 2 modes: emacs and vi.  The default is emacs so it is 
surprising you are seeing this problem (which is indicative of being in vi 
mode).

At your shell prompt type this to move back to emacs mode:

set -o emacs

You may want to put this in ~/.bashrc.  It is also worth trying to track 
down why the shell is coming up in a non standard mode.  It may be 
something in /etc/profile or your existing rc files.

Rob

-- 
Robert Brockway B.Sc.
Senior Technical Consultant, OpenTrend Solutions Ltd.
Phone: 416-669-3073 Email: rbrockway at opentrend.net http://www.opentrend.net
OpenTrend Solutions: Reliable, secure solutions to real world problems.
Contributing Member of Software in the Public Interest (http://www.spi-inc.org)


More information about the OCLUG mailing list