[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: prompt



Roy Morris wrote:
I would like my default prompt '$' to show the pwd/cwd . I have tried putting
PS1='/bin/pwd' in my .profile, but alas I just get the literal text at the
prompt.

Look here first: http://www.openbsd.org/faq/faq10.html#ksh

If you're using Bourne shell or bash, try PS1='\w\$ '

Lawrence



Visit your host, monkey.org