Browse Source

fix bug

pull/1/head
10sr 12 years ago
parent
commit
88b4f21dd8
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      bashrc

+ 2
- 1
bashrc View File

@@ -481,7 +481,8 @@ __my_ps1_bttry(){
local bst="/tmp/${USER}-tmp/batterystatus" local bst="/tmp/${USER}-tmp/batterystatus"
if test -z "$DISPLAY" && ! iswindows if test -z "$DISPLAY" && ! iswindows
then then
test -f $bst && echo "[Battery:$(cat $bst)]"
test -f $bst && local bstr="$(cat $bst)"
test -n "$bstr" && echo "[Battery:$bstr]"
__my_battery_status %s >$bst & __my_battery_status %s >$bst &
fi fi
return $last return $last


Loading…
Cancel
Save