From owner-freebsd-questions@FreeBSD.ORG Thu May 15 06:29:46 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0748B1065674 for ; Thu, 15 May 2008 06:29:46 +0000 (UTC) (envelope-from wojtek@wojtek.tensor.gdynia.pl) Received: from wojtek.tensor.gdynia.pl (wojtek.tensor.gdynia.pl [IPv6:2001:4070:101:2::1]) by mx1.freebsd.org (Postfix) with ESMTP id 09F338FC1B for ; Thu, 15 May 2008 06:29:44 +0000 (UTC) (envelope-from wojtek@wojtek.tensor.gdynia.pl) Received: from wojtek.tensor.gdynia.pl (localhost [IPv6:::1]) by wojtek.tensor.gdynia.pl (8.14.2/8.14.2) with ESMTP id m4F6TRPT005416; Thu, 15 May 2008 08:29:27 +0200 (CEST) (envelope-from wojtek@wojtek.tensor.gdynia.pl) Received: from localhost (wojtek@localhost) by wojtek.tensor.gdynia.pl (8.14.2/8.14.2/Submit) with ESMTP id m4F6TQv6005413; Thu, 15 May 2008 08:29:27 +0200 (CEST) (envelope-from wojtek@wojtek.tensor.gdynia.pl) Date: Thu, 15 May 2008 08:29:26 +0200 (CEST) From: Wojciech Puchar To: Montag In-Reply-To: <1210810823.5782.1253224263@webmail.messagingengine.com> Message-ID: <20080515082916.G5412@wojtek.tensor.gdynia.pl> References: <1210810823.5782.1253224263@webmail.messagingengine.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: freebsd questions Subject: Re: Configuring Bash X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 May 2008 06:29:46 -0000 > PS1 = ' [\u@\h--\w] ' > case `id -u` in > 0) PS1='${PS1} # ';; # root > *) PS1='${PS1} $ ';; # everyone else > > When I log in, I am greeted with: > ${PS1} $ $ $PS1 nie ${Ps1} > > However, if I su to root, I get: > [root@host-- /home/user]# > > That is what I wanted, but for some reason it is not working for a > normal user. I thought perhaps the problem could be that .bash_profile > is only loaded when a non-login shell is spawned, but a quick > consultation of man bash revealed that bash reads ~/.bash_profile when > it is invoked as a login shell. > > My next thought was that it was a permissions issue, but: > su > chmod 777 .bash_profile > exit > logout > login > > That did not change the results, the output was still the same as above. > This is all being done at the console, by the way. > > Appreciate any advice, > > montag > -------------------------- > "Give the people contests they win by remembering the words to more popular songs or the names of state capitals or how much corn Iowa grew last year. Cram them full of non-combustible data, chock them so damned full of 'facts' they feel stuffed, but absolutely 'brilliant' with information. Then they'll feel they're thinking, they'll get a sense of motion without moving." > > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" > >