From owner-freebsd-current Wed Oct 28 18:32:32 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id SAA14610 for freebsd-current-outgoing; Wed, 28 Oct 1998 18:32:32 -0800 (PST) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from zone.syracuse.net (zone.syracuse.net [205.232.47.17]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id SAA14605 for ; Wed, 28 Oct 1998 18:32:28 -0800 (PST) (envelope-from green@zone.syracuse.net) Received: from localhost (green@localhost) by zone.syracuse.net (8.8.8/8.8.7) with ESMTP id VAA09055; Wed, 28 Oct 1998 21:32:09 -0500 (EST) Date: Wed, 28 Oct 1998 21:32:08 -0500 (EST) From: Brian Feldman To: Parag Patel cc: current@FreeBSD.ORG Subject: Re: Stupid ksh tricks [Was: Re: Changing sh for compatibility sake] In-Reply-To: <199810281822.KAA15056@pinhead.parag.codegen.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG set -o vi-tabcomplete -Brian Feldman On Wed, 28 Oct 1998, Parag Patel wrote: > > A minor aside regarding some stupid ksh tricks... > > My fingers have gotten used to hitting TAB in bash for completing file names. I'd avoided pdksh only for this one reason. (Sad, I know.) > > I recently dug through the man-page for pdksh and discovered that adding these following lines: > > case "$KSH_VERSION" in > *"PD KSH"*) > bind '^I=complete' > bind '^I^I=complete-list' > ;; > esac > > to my .kshrc (which is linked to .bashrc for me) and things work just fine. It's not *exactly* the same output, but it's pretty much the same behavior and so my fingers don't have to be retrained. I've switched over to pdksh now. > > I also have some ksh functions to mimic the csh/bash pushd/popd commands, so if anyone's interested in these, please let me know and I'll email my .kshrc or put it up for ftp. > > As an added bonus you also get a function for setting the title bar in several terminal emulators (xterm, hpterm, and Mac NCSA Telnet) to the current directory stack. > > > -- Parag > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-current" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message