Skip to content

Latest commit

 

History

History
53 lines (30 loc) · 1.33 KB

README.md

File metadata and controls

53 lines (30 loc) · 1.33 KB

Batman Gif

Batman - CLI Battery Manager

Introduction

Batman is a simple shell plugin which adds in the Right Prompt icons showing battery status.

It's focused on programmers that spend lots of time programming in notebooks. 😎

Look at those arrows 😱 :

Batman Demo

Installation

  • Clone the repo

  • Enter in the folder

  • Run the install

or

git clone https://github.com/zrpaplicacoes/batman.git

cd batman

./install.sh

Configuration

In order to change battery icon (full list of available unicode icons here, default full charge color, default almost full charge color, default lack of battery color and default alert color just change global variables before source call in your .bashrc or .zshrc.

Example:

BATTERY_SYMBOL='\u22d9'
DANGER_COLOR='%{\e[1;31m%}'
ALERT_COLOR='%{\e[1;33m%}'
SAFE_COLOR='%{\e[1;32m%}'
FULL_COLOR='%{\e[1;35m%}'

source '~/bin/batman/plugin.sh'

More info