From dedf36c9aea8b97843719a55f88492fbdd04a426 Mon Sep 17 00:00:00 2001 From: Moviuro Date: Tue, 16 Sep 2014 13:49:28 +0200 Subject: [PATCH] zshrc: moved the unsupported OSes for the battery info in the battery function --- etc/zsh/zshrc | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/etc/zsh/zshrc b/etc/zsh/zshrc index a810b26..ae42923 100644 --- a/etc/zsh/zshrc +++ b/etc/zsh/zshrc @@ -1650,12 +1650,6 @@ PS4='+%N:%i:%_> ' # - vcs_info setup and version specific fixes # display battery status on right side of prompt using 'GRML_DISPLAY_BATTERY=1' in .zshrc.pre -if [[ $GRML_DISPLAY_BATTERY -gt 0 ]] ; then - if ! islinux && ! isopenbsd && ! isfreebsd ; then - # not yet supported - GRML_DISPLAY_BATTERY=0 - fi -fi battery() { if [[ $GRML_DISPLAY_BATTERY -gt 0 ]] ; then @@ -1665,6 +1659,9 @@ if [[ $GRML_DISPLAY_BATTERY -gt 0 ]] ; then batteryopenbsd elif isfreebsd ; then batteryfreebsd + else + #not yet supported + GRML_DISPLAY_BATTERY=0 fi fi } -- 2.1.4