From owner-freebsd-questions@FreeBSD.ORG Mon Jul 18 13:25:53 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id EEED116A41C for ; Mon, 18 Jul 2005 13:25:53 +0000 (GMT) (envelope-from dopplecoder@gmail.com) Received: from zproxy.gmail.com (zproxy.gmail.com [64.233.162.205]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8BB2B43D45 for ; Mon, 18 Jul 2005 13:25:53 +0000 (GMT) (envelope-from dopplecoder@gmail.com) Received: by zproxy.gmail.com with SMTP id r28so885275nza for ; Mon, 18 Jul 2005 06:25:50 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=BvI797tZODr1vork5fqNMhp9waBCfJXidF/a1Bz5lQeuUYgBLSJ/H0G8YcIpstHHKKUr3/lts0FRUy0gxLY+590opbXagR2EfJCgfHOYT4ZYJXRE8be+Q5Xb9AlRm09sbHJfMgwQak/vPHt1PLuMYoGtXOlQwXl6cPeF4h3Zzmo= Received: by 10.36.119.17 with SMTP id r17mr3409857nzc; Mon, 18 Jul 2005 06:25:24 -0700 (PDT) Received: by 10.36.128.17 with HTTP; Mon, 18 Jul 2005 06:25:24 -0700 (PDT) Message-ID: <45d750d205071806252b2697f7@mail.gmail.com> Date: Mon, 18 Jul 2005 09:25:24 -0400 From: Aaron Peterson To: Alex Yarmol In-Reply-To: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: Cc: freebsd-questions@freebsd.org Subject: Re: Bash prompt X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Aaron Peterson List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 18 Jul 2005 13:25:54 -0000 On 7/17/05, Alex Yarmol wrote: > How I can chage my bash prompt to this: >=20 > [user@host directory-name(e. g. "alex" for /usr/home/alex)]$ >=20 > I assume that I need to do that: >=20 > export PS1=3D'[\u@\h \(here i don't know what to do, i assume, that I > need to write "\p" or "\P", but it's not working)]\$ \w lowercase should give you the full path \W uppercase gives the last component of the path, so given: [user@host /]$ cd /usr/local/etc [user@host etc]$ which tend to prefer to the full path, but you didn't ask what I prefer :-) Aaron