zsh-users
 help / color / mirror / code / Atom feed
From: Bart Schaefer <schaefer@brasslantern.com>
To: "shirish शिरीष" <shirishag75@gmail.com>
Cc: zsh-users <zsh-users@zsh.org>
Subject: Re: How to add battery status on extreme right of zsh prompt
Date: Tue, 27 Dec 2016 16:07:39 -0800	[thread overview]
Message-ID: <CAH+w=7ar3JqTD=5N3PcCtnbJzTn398gV7yR0DMu85xzRhkUKYw@mail.gmail.com> (raw)
In-Reply-To: <CADdDZRkGDm6FCH1hXrV-WKOfcXs_F5k47tZGrAvn6Ae20dWuHA@mail.gmail.com>

On Tue, Dec 27, 2016 at 3:16 PM, shirish शिरीष <shirishag75@gmail.com> 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.


      reply	other threads:[~2016-12-28  0:07 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-12-27 23:16 shirish शिरीष
2016-12-28  0:07 ` Bart Schaefer [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAH+w=7ar3JqTD=5N3PcCtnbJzTn398gV7yR0DMu85xzRhkUKYw@mail.gmail.com' \
    --to=schaefer@brasslantern.com \
    --cc=shirishag75@gmail.com \
    --cc=zsh-users@zsh.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).