ソースを参照

do not show battery status when 100%

pull/1/head
10sr 11年前
コミット
9a86fb2c4e
1個のファイルの変更2行の追加1行の削除
  1. +2
    -1
      bashrc

+ 2
- 1
bashrc ファイルの表示

@@ -678,7 +678,8 @@ __my_ps1_bttry(){
if test -z "$DISPLAY" && ! iswindows
then
test -f $bst && local bstr="$(cat $bst)"
test -n "$bstr" && echo "[Battery:$bstr]"
test -n "$bstr" && ! echo $bstr | grep 100 >/dev/null 2>&1 && \
echo "[Battery:$bstr]"
__my_battery_status %s >$bst &
fi
return $last


読み込み中…
キャンセル
保存