2022-08-14 02:10:53 +08:00
|
|
|
#!/bin/bash
|
|
|
|
|
2022-08-16 18:50:49 +08:00
|
|
|
COLOR1="#00FF90"
|
|
|
|
COLOR2="#00A45D"
|
|
|
|
|
2022-08-20 00:07:39 +08:00
|
|
|
used=$(echo $(df -h / | sed -n '1!p') | cut -d' ' -f3)
|
|
|
|
total=$(echo $(df -h / | sed -n '1!p') | cut -d' ' -f2)
|
2022-08-14 02:10:53 +08:00
|
|
|
|
2022-08-16 18:50:49 +08:00
|
|
|
echo "^b$COLOR1^^c$COLOR2^ ^c$COLOR1^^b$COLOR2^ $used/$total ^d^"
|