Live data from Hacker News

Git git git git git

caiustheory.com

171–180 of 244 posts

Re: Git git git git git

#172

Earlier quoted context omitted.

Try The Fuck: https://github.com/nvbn/thefuck/blob/master/README.md

I have The Fuck because I think the premise is hilarious, though I don't use it as much as I'd like since it's kind of slow for me...

It's apparently grown an "instant mode" which goes much faster: https://github.com/nvbn/thefuck/blob/master/README.md#experi...

Re: Git git git git git

#174

Earlier quoted context omitted.

My favorite one of these is typing ctrl-w (cut in emacs) in a browser tab as I am editing a bunch of text in a text box.

I use vimperator, so the only program I use a lot which still doesn't recognize ctrl+w is Hexchat. My friends have gotten used to see me part the channel and rejoin shortly after, cursing my fingers.

Hexchat closing on C-w is such a pain! It can't be scripted away either because it's hardcoded in the source. I haven't looked into this for some time but there does seem to have been some updates.

https://github.com/hexchat/hexchat/issues/397

Re: Git git git git git

#177

> git config --global alias.git '!exec git' Is the exec really required? git config --global alias.git '!git' Will also work. Am I missing something? EDIT: From git doc, "If the alias expansion is prefixed with an exclamation point, it will be treated as a shell command" So exec is not required then.

You are right, I checked and the resulting sub-process tree is the same regardless of whether !git or !exec git is used.

Also, I found one caveat from the same docs:

> Note that shell commands will be executed from the top-level directory of a repository, which may not necessarily be the current directory. GIT_PREFIX is set as returned by running git rev-parse --show-prefix from the original current directory.

So, if I have a modified file `bar` in subdirectory `foo` under project root, and I am currently in `foo`, git status will show:

    modified:   bar
but git git status will show:

    modified:   foo/bar
To fix this, we should use cd first:

    git config --global alias.git '!cd "$GIT_PREFIX" && git'

Re: Git git git git git

#178

Earlier quoted context omitted.

I always typed rebnoot, so I patched Netbsd to allow rebnoot. Then I patched it still so it would say, "Rebnooting". Fun times.

Relatable. For years, I aliased mroe to more. Now I alias mroe and more to less. My wife drafts a lot of legal documents, and has a problem with "doe snot". Which unfortunately the spelling checker is perfectly happy with.

There's defintitely room for an advanced spell checker that can say "This is valid, but probably wrong".

Re: Git git git git git

#179

Earlier quoted context omitted.

Relatable. For years, I aliased mroe to more. Now I alias mroe and more to less. My wife drafts a lot of legal documents, and has a problem with "doe snot". Which unfortunately the spelling checker is perfectly happy with.

There's defintitely room for an advanced spell checker that can say "This is valid, but probably wrong".

defintitely

Re: Git git git git git

#180
Why is this a problem? Is the author blind? If this happens with git then surely it happens with every command. What about "rm"? What if I type "rm -Rf", leave, then come back and type something else? Maybe a better solution is to change behaviour, or if there really is some reason for this behaviour, have something delete the currently entered command after it's been idle for some seconds.
Post reply on HN