Skip to content

Conversation

@pjuhasz
Copy link

@pjuhasz pjuhasz commented Sep 22, 2013

Hello,

I've been using your git-prompt for a while, adding new modules and features from time to time.
A few days ago I found your github, so I decided to fork and add my changes so that they can be merged back to the main repo.

Rationale for the new features:

  • when I'm on a laptop, I want to know how much battery life still remains - this information is displayed by Unicode bar-chart drawing characters to save space.
  • I usually have several tabs open in gnome-terminal, and some of the shells run programs in the background (like editors or number-crunching scripts). I like to be reminded not to close these tabs because I'd lose the background processes with them.
  • If a project has a makefile (as most software projects do), I like to be able to tell with a glance whether the executables are up-to-date or I have to remake them.

Apart from these, I made the order of modules configurable and fixed a few minor things.

Juhász Péter added 30 commits September 21, 2013 21:34
Juhász Péter and others added 30 commits October 20, 2013 19:02
…empty (e.g. when an ssh connection is started from within a screen session)
…empty (those responsible for the previous fix were fixed)
…only if not inside a screen/tmux on the remote system
…utput is unreliable if there are more than one batteries in the system, use the /sys/class/power_supply/BAT0 filesystem directly instead
…different fancy characters, because the old ones break gnome terminal + tmux
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants