Re: questions on NBSD 1.6.1

From: Karsten Kruse (tecneeq_at_tecneeq.de)
Date: 07/19/04


Date: Mon, 19 Jul 2004 05:08:39 +0200


On Sun, 18 Jul 2004, Jan Schaumann wrote:

>> http://tecneeq.dyndns.org/~karsten/ksh/kshrc

> export PS1='$MYNAME@$HOSTNAME:$(pwd | sed "s/^$HDIR/\~/")> '

> This costs you one invocation of sed per directory change.

> export TILDE='~'
> ${TILDE[(1-0${PWD%%@([!/]*|$HOME*)}1)]-}${PWD#${HOME}}

Cool trick :).

> set -o emacs
> set -o vi-tabcomplete

> ksh(1) says:
> Interactive Input Line Editing
> The shell supports three modes of reading command lines from a tty in
> an interactive session. Which is used is controlled by the emacs,
> gmacs and vi set options (at most one of these can be set at once).

> So... why the additional 'set -o emacs' ?

The question is "why set -o vi-tabcomplete?". tab-completition is
default in emacs-mode, i can remove it.

Karsten Kruse

-- 
         Homepage, Mac68k, A/UX-Links und Shorties: www.tecneeq.de
   ()    Linux/NetBSD-Anleitungen, Forum  und Chat: www.newbie-net.de
  <\/>
  _/\_   Slowly and surely the unix crept up on the Nintendo user ...