summaryrefslogtreecommitdiffstats
path: root/.local/bin/status/sb-disk
blob: 2e19c3b8656d51c8393c73995c9e48f1ee1c858b (plain)
1
2
3
4
5
6
7
8
9
#!/bin/sh

echo -n " "
df=$(df -h -T | grep '/$')
if echo "$df" | grep zfs >/dev/null 2>&1; then
	zpool list | tail -n1 | awk '{print $8" - "$3"/"$2}'
else
	echo "$df" | awk '{print $6" - "$4"/"$3}'
fi