소스 검색

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


불러오는 중...
취소
저장