Live data from Hacker News

Show HN: Witr – Explain why a process is running on your Linux system

github.com

11–20 of 108 posts

Re: Show HN: Witr – Explain why a process is running on your Linux system

#11
post #10

This is amazing. Thank you for sharing this. Do you have any qualms about me making an entry in the AUR for this?

Im not the author but I would love for an AUR made for this ;)

My favorite thing about arch is how insanely quickly AURs pop up for interesting tools.

Re: Show HN: Witr – Explain why a process is running on your Linux system

#15
post #13

This is great. Small, trivial suggestion: the gif that loops in the README should pause on the screen w/ the output for a few seconds longer - it disappears (restarts) too quickly to take in all of the output.

https://github.com/charmbracelet/vhs is a really good utility for automatically making these gifs.

Re: Show HN: Witr – Explain why a process is running on your Linux system

#16
post #14

What does this means for context: “Git repository name and branch” Does this mean it detects if something is running from within a git repository folder? Couldn’t find the code that checked this.

It appears to walk up from the process's working directory searching for a .git directory: https://github.com/pranshuparmar/witr/blob/1e47bdb8fde179b17...

Re: Show HN: Witr – Explain why a process is running on your Linux system

#17
If you're looking to build and install this from source, here's the incantation:

CGO_ENABLED=0 go build -ldflags "-X main.version=dev -X main.commit=$(git rev-parse --short HEAD) -X 'main.buildDate=$(date +%Y-%m-%d)'" -o witr ./cmd/witr

Call me old-fashioned, but if there's an install.sh, I would hope it would prefer the local src over binaries.

Very cool utility! Simple tools like these keep me glued to the terminal. Thank you!

Re: Show HN: Witr – Explain why a process is running on your Linux system

#18
post #13

This is great. Small, trivial suggestion: the gif that loops in the README should pause on the screen w/ the output for a few seconds longer - it disappears (restarts) too quickly to take in all of the output.

I would also argue it shouldn't be a gif. It's nice that it shows the command is fast I guess but it's one command that's still visible in the final frame. Not as bandwidth efficient and agreed I can't read it all in time

Re: Show HN: Witr – Explain why a process is running on your Linux system

#20
post #17

If you're looking to build and install this from source, here's the incantation: CGO_ENABLED=0 go build -ldflags "-X main.version=dev -X main.commit=$(git rev-parse --short HEAD) -X 'main.buildDate=$(date +%Y-%m-%d)'" -o witr ./cmd/witr Call me old-fashioned, but if there's an install.sh, I would hope it would prefer the local src over binaries. Very cool utility! Simple tools like these keep me glued to the terminal…

Alternatively you can use Nix! :P https://github.com/pranshuparmar/witr/pull/5
Post reply on HN