From d2f8f7247ad92704126f4c5cb6bf23fcc3117efa Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Sat, 17 Dec 2016 10:49:07 +1100 Subject: [PATCH] Update CHANGELOG.md --- CHANGELOG.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index f5dfadf1..41164186 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -69,8 +69,19 @@ Neofetch now has an irc channel at `#neofetch` on Freenode. If you have any ques **Disk**
+- Rewrote function from scratch. + - The function is `40` lines smaller than before and works on all \[1\] versions of `df` we tested on \[2\]. +- We only show the `root (/)` partition now. + - Showing a total of all disks only worked on GNU `df` and we had to hardcode different commands for Distros and Operating Systens that used a different `df`. +- We're using the same `df` flags across all Operating Systems now. + - No more ugly case statements or per distro hardcoding of `df` flags. +- Removed all percentage calculation since `df` already provides us with the percentage. - Warn the user if `df` isn't installed. - Fixed broken output if `df` wasn't installed but the function was enabled. + +\[1\] The function doesn't work on Haiku since their `df` is wildly non-standard. (The output format and flags are 100% different from all of the other `df` versions floating around.) + +\[2\] Tested on `GNU`, `Busybox`, `BSD`, `Solaris` and `macOS` `df` versions. **Song**