Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 1 Jul 1999 18:16:14 -0500 (CDT)
From:      "Johnny F. Morris" <freebsd@tds.color-laser.com>
To:        freebsd-questions@freebsd.org
Subject:   PWD Shell Prompt Using sh
Message-ID:  <l03130300b3a15de73e2d@[207.43.223.67]>

next in thread | raw e-mail | index | archive | help
Hello,
I'd like to change my shell prompt to wear it displays my pwd followed by
an # or whatever, I don't really care about anything besides getting the
pwd.

I've tried several different
PS1="try"
PS1="try again"
PS1="try again and again"
and it lists the pwd of when I log in, but it doesn't change dynamically as I
cd around my system. It just stays the same.

I'm using just 'sh'   not 'bash or ksh or csh'

And the PS1 line I was editing is in my home directory's '.shrc' file.
I've read that this shell uses the '.profile' file, but '.profile' points
the shell to my '.shrc' file.

If anyone could tell me the correct syntax to make it list my pwd I'd
appreciate it.

Thank You.
Johnny




To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?l03130300b3a15de73e2d>