#!/bin/sh # reset="\033[0m" # big="\033[12m" IFS=' ' types=${1:-ext2,ext3,ext4,xfs,btrfs,vfat} first=true for mnt in $(findmnt -Py -t "$types"); do # shellcheck disable=SC2086 eval $mnt [ -d "$TARGET" ] || break [ "$TARGET" = "/var/lib/docker" ] && break [ "$first" = "false" ] && printf " | " printf "%b" "${TARGET}: $(df -H "$TARGET" | awk ' /[0-9]/ {print $3 "/" $2}')" first=false done printf "\n"