ksh prompt
Owen D. Beckley
beckley at cbnewsd.att.com
Fri Mar 1 02:52:48 AEST 1991
>From article <7079 at mentor.cc.purdue.edu>, by asg at sage.cc.purdue.edu (The Grand Master):
> In article <1772 at brchh104.bnr.ca> herrage at brchh107.BNR.CA writes:
>>I have the following defined in my .profile:
>>
>> alias prompt="PS1=\"--> \`pwd\` <--
>> hostname> \""
> Try instead
> PS1="--> \$PWD <--
If you like a one line prompt, try this:
PS1='${PWD#${PWD%/*/*/*}/}> '
I puts only the lowest three parts of PWD in the prompt.
owen_d_beckley at att.com
More information about the Comp.unix.shell
mailing list