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

echo -n "^c#d3869b^ "
df=$(df -h -T | grep '/$')
if echo "$df" | grep zfs >/dev/null 2>&1; then
	zpool list $(echo $df | sed 's/\/.*//') | tail -n1 | awk '{print $3"/"$2}'
else
	echo "$df" | awk '{print $6}'
fi