From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,55bdda513361063c X-Google-Attributes: gidfee84,public From: g0daeniken@sgcl1.unisg.ch Subject: RE: System Prompt - Put Path in prompt Date: 1995/06/20 Message-ID: <1995Jun20.093531.3215@sgcl1.unisg.ch>#1/1 X-Deja-AN: 104728515 references: <3rsqc3$h3p@nn.fast.net> <3s46pj$9gt@lll-winken.llnl.gov> organization: University of St.Gallen, Switzerland newsgroups: comp.unix.osf.osf1 In article <3s46pj$9gt@lll-winken.llnl.gov>, oberman@icaen.llnl.gov writes: > In Article <3rsqc3$h3p@nn.fast.net> > Robert Cerniglia writes: >>I'm trying to find somebody who can tell me where to find or how to >>write a script that will display my Current working directory as my system >>prompt. > > What shell are you using? If it's tcsh, it's directly supported with > "set prompt=%\" or, for a friendlier and shorter presentation, > "set prompt=%~". And in ksh, you have to include the line export PS1='!$PWD> ' in your home directory's .profile The ! is optional, it displays the history counter. regards, Eric