From owner-freebsd-questions Thu Jul 1 16:16:20 1999 Delivered-To: freebsd-questions@freebsd.org Received: from mirror.color-laser.com (unknown [207.43.223.75]) by hub.freebsd.org (Postfix) with ESMTP id E437D1504B for ; Thu, 1 Jul 1999 16:16:16 -0700 (PDT) (envelope-from freebsd@tds.color-laser.com) Received: from [207.43.223.67] ([207.43.223.67]) by mirror.color-laser.com (8.9.3/8.9.3) with ESMTP id SAA17409 for ; Thu, 1 Jul 1999 18:16:14 -0500 (CDT) Date: Thu, 1 Jul 1999 18:16:14 -0500 (CDT) X-Sender: freebsd@mirror.color-laser.com Message-Id: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" To: freebsd-questions@freebsd.org From: "Johnny F. Morris" Subject: PWD Shell Prompt Using sh Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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