Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: How to add battery status on extreme right of zsh prompt
- X-seq: zsh-users 22296
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: shirish शिरीष <shirishag75@xxxxxxxxx>
- Subject: Re: How to add battery status on extreme right of zsh prompt
- Date: Tue, 27 Dec 2016 16:07:39 -0800
- Cc: zsh-users <zsh-users@xxxxxxx>
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=jtPfpkOdCaMtFoc7gFItO20Hjmv/nYa5ggA67FVzMOI=; b=FMXxainmqrHjDnDbm6eIdSsIZK8iCu1AXM3xdSgwqfkRrh5LaXyM8Jq2muc7/9gWAd 1TiejC3Dw0p+De4K95THAjQO3dbl0exsYHqU18AeKOJdIMxxfF8gg8IGIZxZGEGuSuqY m6FDnf0WMrVrmQUjyAd3ohDiIvfVJXpq6fJNg2jdW2qY3hoJGHM11yRE0RsArjp4aBnJ VDVN8S8cURWNuQ+VwJkm9qlV1vzPZQg9rsQSeIZilVJRNipgESsBylrw+Ej4ql9hxX+Q g5+r+qqCvzAGwCjsUd1egVumFGHhDQlqTRJFKcGoG/zoWts9L/QVa3pfTaNYvYfaUITH mlPw==
- In-reply-to: <CADdDZRkGDm6FCH1hXrV-WKOfcXs_F5k47tZGrAvn6Ae20dWuHA@mail.gmail.com>
- 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: <CADdDZRkGDm6FCH1hXrV-WKOfcXs_F5k47tZGrAvn6Ae20dWuHA@mail.gmail.com>
On Tue, Dec 27, 2016 at 3:16 PM, shirish शिरीष <shirishag75@xxxxxxxxx> wrote:
>
> I am sure this has been tackled as there are thousands of dotfiles in
> github of which some might have got the answer, neither do I have the
> skills or patience to go through them.
https://github.com/search?utf8=%E2%9C%93&q=zsh+battery+status&ref=simplesearch
The very first result is about putting the battery status in the RPROMPT.
The third result has code for Linux and Darwin, though it displays the
battery as a numeric percentage rather than a graph. Also it won't
work at all (will probably throw errors) on e.g. a desktop that
doesn't have a battery in the first place.
Drop "status" from the search and it finds several more including an
oh-my-zsh plugin.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author