+++++++++++>-]<.>++[<------------>-]<+.--------------.[-]I was read man page about ksh and found 'set -o emacs' and so on (BTW man
pages are great source),but command history is running by default after
install.Problem start after I setup $EDITOR in .profile .Looks like something is
fighting with something,but can't find what.Can $EDITOR affect this default behavior (running command history after
install)?-----Original Message-----
From: Paul de Weerd [mailto:weerd@weirdnet.nl]
Sent: Wednesday, June 11, 2008 10:23 AM
To: Tomas Bodzar
Cc: misc@openbsd.org
Subject: Re: command history in ksh missed when I set $EDITOROn Wed, Jun 11, 2008 at 08:57:22AM +0100, Tomas Bodzar wrote:
| Hi all,
|
| When I set this in my .profile
|
| # Editor
| EDITOR=/usr/bin/vi
| export EDITOR
|
| then I don't have command history,I can't use arrow keys for going to
previous
| command,
| CTRL+R is not running too.
|
| What's wrong with this setting?I'm using kshYou'll have to `export VISUAL=emacs` or `set -o emacs` to use arrow
keys for command history. Alternatively, you can do what you've
configured your system to do and use -[jk] to navigate through
your command history and use vi-like keys to edit your command line.Things are working as expected (it's just that you weren't expecting
this ;), read the ksh manpage, specifically the section on VISUAL and
EDITOR. Note that you can have VISUAL and EDITOR set to vi and still
be able to use emacs mode on your shell by using set -o emacs.Cheers,
Paul 'WEiRD' de Weerd
--
| Greg Kroah-Hartman | [PATCH 004/196] Chinese: add translation of SubmittingPatches |
| David Chinner | Re: [RFD] BIO_RW_BARRIER - what it means for devices, filesystems, and dm/md. |
| Andrew Morton | -mm merge plans for 2.6.23 |
| Trent Piepho | Re: [PATCH] [POWERPC] Improve (in|out)_beXX() asm code |
git: | |
| David Miller | Re: iptables very slow after commit784544739a25c30637397ace5489eeb6e15d7d49 |
| Jarek Poplawski | [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock(). |
| Gerrit Renker | [PATCH 27/37] dccp: Integration of dynamic feature activation - part 2 (server side) |
| David Miller | [GIT]: Networking |
