diff options
author | Joe <bousset.rudy@gmail.com> | 2022-08-18 10:46:30 +0200 |
---|---|---|
committer | Joe <bousset.rudy@gmail.com> | 2022-08-18 10:46:30 +0200 |
commit | 9555aadb15412b659da78060600d0a724a975bd2 (patch) | |
tree | 570b711f3c567454a7678f2ea798bab61dd25ed5 /.local/bin/status/sb-disk | |
parent | cleaner (diff) | |
download | dotfiles-bsd-9555aadb15412b659da78060600d0a724a975bd2.tar.gz dotfiles-bsd-9555aadb15412b659da78060600d0a724a975bd2.tar.bz2 dotfiles-bsd-9555aadb15412b659da78060600d0a724a975bd2.tar.xz dotfiles-bsd-9555aadb15412b659da78060600d0a724a975bd2.tar.zst dotfiles-bsd-9555aadb15412b659da78060600d0a724a975bd2.zip |
added disks
Diffstat (limited to '.local/bin/status/sb-disk')
-rwxr-xr-x | .local/bin/status/sb-disk | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/.local/bin/status/sb-disk b/.local/bin/status/sb-disk new file mode 100755 index 0000000..2e19c3b --- /dev/null +++ b/.local/bin/status/sb-disk @@ -0,0 +1,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 |