Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: volume label in prompt?
- X-seq: zsh-users 17346
- From: TJ Luoma <luomat@xxxxxxxxx>
- To: Ray Andrews <rayandrews@xxxxxxxxxxx>
- Subject: Re: volume label in prompt?
- Date: Thu, 25 Oct 2012 20:57:39 -0400
- Cc: zsh-users@xxxxxxx
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=JgbN3z0pvn0ZTfqW5CoNwx9QjnPsFmDPISHmmEkmzs8=; b=IQjoL8BYKhtqi9FE5DSogMvWdWVyv/vbWz/uPTCyc3iuCJGUh4IH1bTKft0I7MyPVh zZNxIp8Eo5YhTs3wRKH3UuBUIam3KsBbyVxBkUlOhRj/03Jw/lhZzAUHwPVJL9J3EMP0 K5zWgpiPHcmj5eS92gvjcdLbBGaCupPIl/ljbfWC4/XlH7A70wn/vX6zeDlXSQo9TQq5 eTUXLvU/M7nta9YPEF/LauQYcsMCD8M9nrMA7rvdxEg67w+fE48FacmAdRfw+DmXKAfw XwXrJgmgQHQ3Viqen/sQK1ZQc2D9CgMth3PTsOCjL3pcpW4zN4J0GzfKJw9EtFQFYOHS ZIYQ==
- In-reply-to: <5089C812.6030504@eastlink.ca>
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <50895F66.9050407@internecto.net> <20121025172732.56a44ed2@pwslap01u.europe.root.pri> <5089C812.6030504@eastlink.ca>
On Thu, Oct 25, 2012 at 7:15 PM, Ray Andrews <rayandrews@xxxxxxxxxxx> 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.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author