From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25693 invoked by alias); 28 Dec 2016 00:07:48 -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: 22296 Received: (qmail 8916 invoked from network); 28 Dec 2016 00:07:48 -0000 X-Qmail-Scanner-Diagnostics: from mail-qt0-f180.google.com by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.99.2/21882. spamassassin: 3.4.1. Clear:RC:0(209.85.216.180):SA:0(-0.7/5.0):. Processed in 0.865724 secs); 28 Dec 2016 00:07:48 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_PASS,T_DKIM_INVALID autolearn=unavailable autolearn_force=no version=3.4.1 X-Envelope-From: schaefer@brasslantern.com X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | Received-SPF: pass (ns1.primenet.com.au: SPF record at _netblocks.google.com designates 209.85.216.180 as permitted sender) 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== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=jtPfpkOdCaMtFoc7gFItO20Hjmv/nYa5ggA67FVzMOI=; b=c1Zuk/YphHOIg9eLv0BkfqDYR4EXbGMCHD+720REXrt4DaoBL4EvqQjygoZFJiqmo9 ZRthajb8xAAa1/YvUbUdACc1aaNzHSXm9cJS8qd2OBzdvNBui/fG5yoIpRKnyfVTTxF8 FQ0+fU+c2FUY5jAvi03e+UI1rBs/A9SusGIjIoedrUk5Mvlzsh357A/mQp6x9jEoAmNH BFrYZyqZsKbdFWeOxnRfTtiKqecwczMBSu/fCIZiyZr7PYSp1BR6+zprcLQ2xT7ZnPKu eWARlu24trk2CRKaQmjp8joBGa6e3Fpa7T4ALNxh77lAJ8ln4mIYt3tTKRBCWC3EzxPD bCdA== X-Gm-Message-State: AIkVDXLuPSUQjJr1d+qcWxCu4ugq83/J5fqyBbXrsgzffmnTfE9DrIbZTPtVg1EBEmC6WPaHqbWsIZ652rNVNQ== X-Received: by 10.200.44.165 with SMTP id 34mr27708458qtw.233.1482883660062; Tue, 27 Dec 2016 16:07:40 -0800 (PST) MIME-Version: 1.0 In-Reply-To: References: From: Bart Schaefer Date: Tue, 27 Dec 2016 16:07:39 -0800 Message-ID: Subject: Re: How to add battery status on extreme right of zsh prompt To: =?UTF-8?B?c2hpcmlzaCDgpLbgpL/gpLDgpYDgpLc=?= Cc: zsh-users Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On Tue, Dec 27, 2016 at 3:16 PM, shirish =E0=A4=B6=E0=A4=BF=E0=A4=B0=E0=A5= =80=E0=A4=B7 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=3D%E2%9C%93&q=3Dzsh+battery+status&ref=3Dsim= plesearch 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.