Hello,

I'm trying to switch to ksh as my login shell.

It seems to me, that the vi mode is more capable
than emacs-mode in ksh and so I've switched to it
("set -o vi" in my ~/.kshrc) and I do know that I can hit ESC,
then / and type a part of my command to search for it.

However I just can't find (yes, I've read "man ksh")
a way for searching for a partially typed command.

In tcsh I was typing "ll /var/w" and then ESC-p(revious)
and ESC-n(ext) to search for the matching commands.

I also was having:

      bindkey -k up   history-search-backward
      bindkey -k down history-search-forward

for mapping the same functions to the arrow keys
but that's probably to much to ask for...

So what do you do in ksh, when you start to
type a command and then realize, that it must
be somewhere there in the history already?

Thank you
Alex

My .profile:

export 
PATH=$HOME/bin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:.
export PKG_PATH=ftp://ftp.de.openbsd.org/pub/OpenBSD/4.0/packages/i386
export [EMAIL PROTECTED]:/cvs
export PAGER='less -i'
export HISTFILE=$HOME/.history
export ENV=$HOME/.kshrc

My .kshrc:

set -o vi
alias cvs_src='cd /usr/src && cvs -q -d $CVSROOT up -rOPENBSD_4_0 -Pd
| tee ~/src.txt 2>&1'
alias ll='ls -al'

#bind '^XA'=up-history
#bind '^XB'=down-history

PS1="\h:\W> "



--
http://preferans.de

Reply via email to