From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8517 invoked by alias); 26 Oct 2012 03:13:09 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: X-Seq: 17347 Received: (qmail 10344 invoked from network); 26 Oct 2012 03:12:57 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.2 Received-SPF: pass (ns1.primenet.com.au: SPF record at _spf.eastlink.ca designates 24.224.136.9 as permitted sender) X-CMAE-Score: 0 X-CMAE-Analysis: v=2.0 cv=ZKCsaQHb c=1 sm=1 a=sgO5gNtQRqEA:10 a=3hYtqE4e7KUA:10 a=IkcTkHD0fZMA:10 a=BaYxnc4IozAA:10 a=zixjd36BjAA38PouniMA:9 a=QEXdDO2ut3YA:10 a=ZjIqTmGINkQKjhCx/60B3Q==:117 Message-id: <5089F8A0.40003@eastlink.ca> Date: Thu, 25 Oct 2012 19:42:40 -0700 From: Ray Andrews User-Agent: Mozilla/5.0 (X11; Linux i686; rv:14.0) Gecko/20120713 Thunderbird/14.0 MIME-version: 1.0 To: zsh-users@zsh.org Subject: Re: volume label in prompt? References: <50895F66.9050407@internecto.net> <20121025172732.56a44ed2@pwslap01u.europe.root.pri> <5089C812.6030504@eastlink.ca> In-reply-to: Content-type: text/plain; charset=UTF-8; format=flowed Content-transfer-encoding: 7bit On 25/10/12 05:57 PM, TJ Luoma wrote: Thanks, I knew about all of these, but now that I think about it again, I realize that I can do what I want simply by changing the hostname of each distro to something specific and informative, and that's very satisfactory. > On Thu, Oct 25, 2012 at 7:15 PM, Ray Andrews wrote: >> I'm now running three machines here, each with several copies of various >> linii available. It gets a bit confusing. I'm wondering if there might be >> something I can add to my prompt that could help me remind myself where I'm >> at. I'm open to any suggestions, but one idea I had was something to >> identify the volume label of the current root directory. That would do it >> if it can be done. Can it? > PROMPT="%n@%m %~: " > > n = username > > m = hostname up to first "." > > %~ is the current directory, using ~ for $HOME when appropriate. >