Commits

Uğur Özyılmazel committed 58bc298

bugfix

Comments (0)

Files changed (2)

 My Dotfiles for Bash...
 
 # History
+**2013-04-17**
+
+- `battery_prompt.rb` now supports `rbenv`
+
 **2013-03-07**
 
 - bash function `server()` changed. Auto open url function disabled...

scripts/battery_prompt.rb

       hours = time_data[1].to_i
       minutes = time_data[2].to_i
       time_str = hours == 0 ? "min" : "hrs"    
-      # if hours < 1 and minutes < 30 and get_notifier
-      if hours > 1
+      if hours < 1 and minutes < 30 and get_notifier
         options = get_notifier[1] % ["Low Battery", "You have #{minutes} minutes left!"]
         if get_notifier[0] == "terminal-notifier"
           if `which rbenv`.strip.empty?