26 comments

[ 2.5 ms ] story [ 88.4 ms ] thread
I thought this committed all my terminal commands to a git repo. It doesn’t but now I want something like that.
You could do that with a GitHub action quite easily.
I hashed together something like this in my dotfiles a few years ago. Big parts were logging each command run to my own history files (marked with machine and date), rotating those logs, and a cronjob to sync it with GitHub.

Only took a few hours to set up.

Is there a mac binary or homebrew formula?
`cargo install onefetch` should work
What's with the color palette at the bottom? Can I turn off the graphic?

Overall this is almost certainly becoming a staple of my toolbox.

Interestingly enough the color palette doesn't appear for me :)
Wunderbar.
Hahaha. Sorry, that wasn't meant to be a brag. I just know that I haven't turned anything off, so maybe it's a behaviour of a particular commit?

I installed via Cargo, version 1.6.5.

It's trying to be like neofetch for showing off your terminal theme on /r/unixporn
Patterns of commit activity might be shown using unicode sparklines and/or a color scale (foreground and/or background).

"C++ (41.75 %)" seems a lot of ink and space for "C++ 42%".

Nice! In the 2nd screenshot, how is it showing the image? Is that a terminal that can render images, or some clever conversion to ascii art [there's some ascii art related code in the onefetch repo].
I think it's iTerm-specific.
this is possible with sixels, if you are really into it
Imagine one wished to collect interesting repo measures and visualizations. Any suggestions on fruitful places to scavenge?

"<This tool> has a nice one." "I frequently find myself checking a repo for <this measure>, and wish it was automated." "<Here's> a pretty way to present <measure>."

“gource” is pretty cool. It generates an animated history of all commits, visualized as authors pushing into files.
I know this won't be an accurate representation, but sometimes I want to know how many hours I've spent on a repository.

I used git hours for this [0], but it's not well maintained anymore (has some problem on newer node version). I'm curious whether anyone else need this functionality.

[0] https://github.com/kimmobrunfeldt/git-hours

An option to ignore some of the directories of the repository would be a nice addition (ex: ignoring ./vendor/ in golang repository).

Otherwise, nice tool, thanks for creating and sharing it.