Live data from Hacker News

Git git git git git

caiustheory.com

131–140 of 244 posts

Re: Git git git git git

#132

>I quite often type git then go away and come back, then type a full git status after it. Does anyone else actually do this besides OP. I've never heard of this problem until now.

I totally do this. I also occasionally will have something breaking and soon realize I typed 'git' randomly in the middle of a file instead of in my terminal...

I do stuff like because I alt-tab a lot and have so many similar-looking windows open. It's not just me either, I have seen stuff like "git pull" posted in chat rooms followed by "oops wrong window".

Re: Git git git git git

#134

>I quite often type git then go away and come back, then type a full git status after it. Does anyone else actually do this besides OP. I've never heard of this problem until now.

I do. And I also write "vim vim thefile.txt" and stuff like that. Finally I've written a small shell function that corrects "gi tpull" to "git pull", because that happens at least once a day.

If only there was a git shell...

Re: Git git git git git

#135

Earlier quoted context omitted.

I do. And I also write "vim vim thefile.txt" and stuff like that. Finally I've written a small shell function that corrects "gi tpull" to "git pull", because that happens at least once a day.

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.

Re: Git git git git git

#137

Quite often, I accidentally press the space bar eagerly when typing git commands: $ gi tstatus To fix this, I've added the following to my .bashrc: gi() { args=("$@") args[0]=${args[0]/t/} git "${args[@]}" } It also works if you drop the "t" altogether.

Ha! I have almost the same thing:

gi() { ARG=$(echo $1 | sed s/^t//); shift; git "$ARG" "$@"; }

Re: Git git git git git

#138
post #63

Earlier quoted context omitted.

Not this, but I do fairly often think assume I'm in vim when I'm not. `alias :q="echo NOT IN VIM!!!"`

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.

One of the things I appreciate about macOS is that it implements some of the emacs behavior (C-a, C-e, C-k). Unfortunately not C-y, and non of the M- ones work since that's for special characters. I understand they originally come from the readline library.
Post reply on HN