Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!rutgers!clyde!cuae2!ihnp4!inuxc!pur-ee!uiucdcs!convex!ntvax!mike From: mike@ntvax.UUCP Newsgroups: net.unix Subject: Korn Shell Question Message-ID: <22300001@ntvax> Date: Wed, 22-Oct-86 15:46:00 EST Article-I.D.: ntvax.22300001 Posted: Wed Oct 22 15:46:00 1986 Date-Received: Fri, 31-Oct-86 13:24:51 EST Lines: 25 Nf-ID: #N:ntvax:22300001:000:940 Nf-From: ntvax.UUCP!mike Oct 22 13:46:00 1986 I have a Korn Shell question that perhaps someone can answer. I like to have as my system prompt my current path. When I use csh, I set up my .cshrc file with these entries: set prompt = "! `pwd`}" -- this establishes my prompt as my command number and current path when i first initiate the shell alias cd 'chdir \!:1; set prompt=\!\`pwd`}\' this sets up my cd command to not only change my working directory but to change the prompt. I would like to have something similar to this in ksh but I'm not sure how to change PSx on the fly. Has someone done something similar to this?? Any help would be greatly appreciated. |######################################| |# J. Michael Flanery #| |# Computer Science Dept. #| |# North Texas State University #| |# UUCP: {ihnp4}!infoswx!ntvax!mike #| |######################################|