News for hackers. Stuff that matters.
Re:Shit – An implementation of Git using POSIX shell by kragen on Tuesday February 11, 2020 @09:33PM (#22305205)
> I don't understand how vim works beyond the base conceptual level

How much time have you spent trying to figure out how to change the font size in Vim, rotate text 90° in Vim, recalculate a formula in Vim, or insert an image into a document you're editing in it? If the answer is “none”, you probably have a pretty deep understanding of the data model Vim manipulates, even if you aren't aware of it.

Re:Shit – An implementation of Git using POSIX shell by hurrrrrrrr on Wednesday February 12, 2020 @11:39AM (#22310274)
On the other hand I understand de data model of git and can't to the most basic shit without looking up which invocation I need via search engine/man pages. Like... deleting a branch `git branch -d` (-D for forced deletion). Deleting a remote? `git remote rm`. Knowing the model teaches me nothing about the ui.
Re:Shit – An implementation of Git using POSIX shell by war1025 on Wednesday February 12, 2020 @12:49PM (#22310911)
This seems like a good opportunity to plug two aliases I wrote about a year ago that have been very helpful for cleaning up all the extraneous branches that would show up when I ran `git branch`.

I run `git listdead` after I merge and delete a branch and do the next fetch (`git pull --rebase`). That lists the branches that can now be deleted.

Then I run `git prunedead` and it actually removes them.

Previously if I ran `git branch` it would list every development branch I had ever created in nearly a decade of work. Now it lists maybe ten branches.

   listdead = "!sh -c \"git branch -vv | grep ': gone]' | awk '{print \\$1}'\""

   prunedead = "!sh -c \"git branch -vv | grep ': gone]' | awk '{print \\$1}' | xargs git branch -D\""
Re:Shit – An implementation of Git using POSIX shell by kragen on Wednesday February 12, 2020 @02:16PM (#22311789)
Myself, I frequently refer to the man pages, as well as StackOverflow.
Re:Shit – An implementation of Git using POSIX shell by oblio on Wednesday February 12, 2020 @07:18AM (#22308197)
> rotate text 90° in Vim, recalculate a formula in Vim, or insert an image into a document you're editing in it

I'm not sure if I'm missing some features in Vim or you're actually pulling my leg by forcing me to notice that I know more about text than I care to admin :-)

(I'm not OP, BTW, just a random passer-by)

Re:Shit – An implementation of Git using POSIX shell by kragen on Wednesday February 12, 2020 @11:19AM (#22310081)
The latter! Sorry, didn't mean to cause you to question your sanity.