🎉 duf v0.4.0 is out, a user-friendly alternative to 'df'!
What's new?
- Hide filesystems with --hide-fs
- Theme & styling options
- Auto-detects terminal theme
- Support for OpenBSD
- Support for Windows
Get this yummy tool here: https://github.com/muesli/duf 😋
@00dani @fribbledom it's good
@Petra @fribbledom you're good
@00dani @fribbledom Ok, but like, it is
@fribbledom the way the flags work is kinda weird to me, is that a standard go thing? it wants a single dash before a long option and seems to have no short options at all
the examples in the readme all use double dashes, which does work and is much more intuitive, but doesn't seem to be what the program expects
does that make sense
Both single and double dashes work. Yes, that's the default behavior of Go's flag package.
@fribbledom huh. weird decision on the package designers' part
the actual functionality is real nice though, i especially like combining duf --json with jq
@fribbledom
Best thing since sliced bread
@Ted @fribbledom how to install it from AUR? I'm using Manjaro.
@Ted @fribbledom yay command does not found
That's really not the case. If you're following the guides step-by-step, compiling software is typically a lot easier than using it.
Usually all you have to do is copy & paste a few lines of shell commands.
Really understanding the build process and what's going on in the background... that's a different subject, obviously.
@fribbledom @fuck @Ted @faizalr I do wonder sometimes how different attitudes to, and adoption of FOSS would be if 'compiling' had been called 'installing from source' from the start.
@fuck @Ted @fribbledom just try an error 🤓
@faizalr @fribbledom not too deep of a rabbit-hole to go down in that case (at least in theory). https://www.tecmint.com/install-yay-aur-helper-in-arch-linux-and-manjaro/
However, try following the linuxconfig post I linked, and see if that gets you anywhere?
@Ted @faizalr @fribbledom
Just clone and run makepkg
git clone https://aur.archlinux.org/duf.git
cd duf
makepkg -si
@KyleRuzic @Ted @fribbledom will try this command too, thanks.
On Manjaro? Let’s take a look online! I have no clue. Ooh, there’s a GUI thing to enable AUR stuff? Nice. Have a look here. Any interesting errors you experience? I have no clue but will try to figure it out. https://linuxconfig.org/how-to-install-a-package-from-aur-on-manjaro-linux
My experience was simply as such: [tedster@injector ~]$ yay -S duf :: There are 3 providers available for duf: :: Repository AUR 1) duf 2) duf-bin 3) duf-git Enter a number (default=1): 3 :: Checking for conflicts... :: Checking for inner conflicts... [Aur:1] duf-git-r60.dac0c7d-1
@fribbledom Nice!
Which package are you using?
@fribbledom git clone
That's the correct output then. You can manually specify the Version and CommitSHA if you insist on giving it a proper version number.
See the .goreleaser.yml file for how you can pass these values to go build.
@fribbledom aahh! That explains.
Duf is my absolute first introduction to golang. Haven't even looked at the code yet. :)
No worries, happy to help out!
You can try this, for example:
go build -ldflags '-X main.Version=v0.4.0 -X main.CommitSHA=123456'
@fribbledom this tool is so pretty ☺️
@fribbledom this is so much nicer to read than df
@fribbledom wow, this looks *really* nice! Good work! :)
@fribbledom that looks pretty neat..I’m gonna try that out. 😊
@fribbledom hmm. i bet i could add sixel support for that without too much trouble.
@fribbledom Now installed on all of my debian boxes.
@fribbledom I liked this very much. Easy to install, and works beautifully.
@fribbledom Cool will use that instead of df -h where I can. 👍
@fribbledom 👀