Joknarf Tools

Unix CLI tools and automation

GitHub bash bash Licence

dfbar

Simple df command enhancer in less than 4K (only uses bash/df/awk)

image

Prerequisites

  • GNU df
    • on BSD/MacOS coreutils package needed
  • awk
  • bash
  • Nerd Font in your Terminal

Install

You can use a plugin manager, like the famous thefly

. <(curl https://raw.githubusercontent.com/joknarf/thefly/main/thefly) install
fly add joknarf/dfbar

or just clone the repo, and put dfb file in dir in your PATH

git clone https://github.com/joknarf/dfbar

Usage

The dfbar command dfb is used with exactly same options as GNU df

dfb
dfb -h
...

You may want to replace the df command with dfb using:

alias df='dfb'