Path: utzoo!attcan!uunet!lll-winken!ames!ncar!gatech!ncsuvx!ncsugn!fristens From: fristens@ncsugn.ncsu.edu (Brian Fristensky) Newsgroups: comp.unix.questions Subject: Getting UNIX prompt to display current directory Keywords: UNIX prompt directories pwd Message-ID: <5582@ncsugn.ncsu.edu> Date: 18 Mar 89 19:25:03 GMT Organization: Genetics, NCSU, Raleigh, NC USA Lines: 15 In MS-DOS there is a very easy way to get the current directory displayed as part of the prompt (prompt $p). In UNIX, there is certainly no straightforward way to do this. Can anyone think of a tricky way? My guess is that it would involve getting pwd output into the shell variable $PS1, but that would require somehow getting pwd to execute after each command you type. Your prompt assistance in this matter will be appreciated. (sorry.) Brian Fristensky Dept. of Botany North Carolina State University nscugn!fristens@mcnc.uucp