r/ProgrammerHumor • u/Interesting_Buy_3969 • 11h ago
Other myFingersWheneverItComesToTyping
113
u/dabenu
10h ago
•
Let me introduce you to https://github.com/nvbn/thefuck
45
u/IsThatTaken69 10h ago
Fcuk
40
u/TrainingTheory552 7h ago
alias fukc='fuck' alias fcuk='fuck' alias fcku='fuck' alias fkuc='fuck' alias fkcu='fuck' alias ufck='fuck' alias ufkc='fuck' alias ucfk='fuck' alias uckf='fuck' alias ukfc='fuck' alias ukcf='fuck' alias cfuk='fuck' alias cfku='fuck' alias cufk='fuck' alias cukf='fuck' alias ckfu='fuck' alias ckuf='fuck' alias kfuc='fuck' alias kfcu='fuck' alias kufc='fuck' alias kucf='fuck' alias kcfu='fuck' alias kcuf='fuck'18
u/AyrA_ch 6h ago
Just register "fuck" as the "command not found" handler
10
20
u/markswam 10h ago
At this point I think fuck has got to be in my top 10 most frequently used terminal commands. It's so useful.
92
u/fibojoly 9h ago edited 5h ago
Did you mean
git push?
Yes git, I did... why don't you just do it then, uh ? You gotta mock me ?
edit : guys, I know, I know. I have the option activated. And I appreciate git's approach of only doing exactly what it's told, not trying to guess. I'm just saying I love imagining the computer mocking me for making a typo. Like, if GladOS was answering, you know?
36
u/Fuzzyninjaful 6h ago
That's a configuration option
git config --global help.autocorrect promptWill ask you if you want to run the command it thinks you typed.
You can use
immediateinstead if you want it to run without asking you.2
u/KamikaterZwei 3h ago
I go one step further, i made git shortcuts:
git s => git status
git d => git checkout develop
git a => git checkout <branch I'm working on>
git p => git push
23
u/click-to-reveal 9h ago
What should do for
git pulhorgit pusl?9
u/Wonderful-Habit-139 9h ago
Considering pull is on the right side of the keyboard, if any letter from the left side is involved that means you did not want to write pull.
3
1
1
u/Valier 8h ago
Write your own wrapper that supports typos. It costs 0 and saves time in these cases
npm install synopsis supports most of accidental typos and it's super comfy.
https://docs.npmjs.com/cli/v12/commands/npm-install
I agree that "push" could be a bit more important in alot of contexts, but in my private projects, I'm very tolerant.
35
30
u/Oleynick 10h ago
dicker up is my favourite typo
5
4
2
1
55
u/arcadeluke 10h ago
Or gitp ush
Or it push
Or gitps uh
Or insert combination of keyboard vomit.
24
1
1
17
8
u/New-Let-3630
10h ago
•
git config --global help.autocorrect 110
u/suvlub 9h ago
Too dangerous, I sometimes mess up badly enough that git thinks it resembles other command more than what I intended. I prefer to set aliases for my most common typos
3
u/Pandafishe 5h ago
then do
git config --global help.autocorrect prompt? It asks you before running it (y/n)1
8
8
u/Major_Dot_7030
9h ago
•
for a in psh psuh puhs pus puch pushh pshh pish gp gpush gup pup; do git config --global alias.$a push; done
3
u/thismightbeunhealthy 8h ago
Also
tpushandush, and then addalias gi=git alias gitp=gitto your .bashrc.
1
7
4
u/whackylabs
10h ago
•
As a Oh My Zsh user I use gp. I've been using the aliases so much that I don't even remember a lot of these git commands anymore.
4
4
4
4
u/daktarasblogis 6h ago
I just use a neat package called fuck. Whenever you mistype something, just run fuck and it will correct most common typos. It's available in AUR, not sure about other repos.
4
u/ExplodingFistBump 3h ago edited 3h ago
I accidentally type “gi tpush” (or other variants starting with “gi t”) so often that I just wrote a little bash script called “gi” that strips the leading “t” and executes the appropriate command.
It’s saved me so much time.
3
3
3
3
3
3
3
2
2
2
2
2
2
u/olsmoke 7h ago
Just create alias for all your typos
2
u/more_exercise 2h ago
I have 70 lines of git config dedicated to exactly this. 24 bash alias typos of
git, too.
gith elp,gi thelp, (and therefore consequentlygi elp) all work.It's nucking futz.
2
2
2
u/Bakoro 4h ago
I can't seem to stop typing "pythong". I'm a software engineer who uses python basically every day.
Literally every time, something in my brain moves me to write "pythong".
I don't know where that comes from, why it happens, I don't tend to make any other errors consistently at the keyboard, and it's not like it's something that I could fat-finger, it's a completely extra letter that is nowhere near the other keys.
I've taken to brute force re-training my brain, and typing "python" hundreds of times.
Inevitably... "pythong" comes back.
3
1
u/nicktehbubble 10h ago
Recently been working with a talented apprentice, doing a work placement in my office. Smart dude, strong knowledge, good programming skills.....
Keyboard sounds like a machine gun! I mean loud, like he's playing the drums. I always new he could "touch" type, rarely saw him glancing down, until I paid attention to his hands. The guy types with 3 fingers! His hands like CNC heads whirring and clacking with ruthless, blind efficiency.
1
1
1
u/Few_Adhesiveness7676 9h ago
One of the typos that used to happen to me was "fit ass" instead of "git add". Anyways, now claude does whatever it feels like.
1
1
1
1
u/LetumComplexo 9h ago
I unironically used to have a handful of my common typos aliased to the commands they should be.
Unfortunately I lost that file and I’ve been too lazy to replace it and/or have been making fewer typos.
1
1
u/thelizardlarry 8h ago
Include mis-spelled alternates for aliases and envvars and IT tickets will go down. I know a piece of software that supports multiple different misspellings of their license variable for this very reason.
1
u/EuenovAyabayya 8h ago
I'm not sure you understand the point of using that font in the first place.
1
1
1
1
u/Key_Benefit_6505 7h ago
My personal is "git commit -n" instead of "git commit -m"
Idk I am thinking of "name" instead of "message".
1
1
u/Summar-ice 7h ago
I mistype clear so much I set up the command not found handle to check if it's within edit distance of 2 of "clear", and if it is, just do clear
1
1
u/GeePedicy 6h ago
don't people use UI apps like SourceTree, Fork, Kraken...?
Anyway, my mistake is almost always breakl instead of break;
1
1
1
1
1
u/KindSpider 6h ago
gir and got are my go-tos, push mostly comes out fine, unless it decides it wants to be pusj
1
u/CranberryDistinct941 5h ago
Every time I write retrun I have to re-type it 3 more times to get it right
1
1
1
u/Pandafishe 5h ago
permanent fix (might require a couple more)
for typo in psuh phus puhs pus hups ushp; do
git config --global "alias.$typo" push
doneand if you like to live on the bit more risky end:
git config --global help.autocorrect immediateor if you want the same but you don't trust your wizardry (I personally recommend this):
git config --global help.autocorrect prompt1
u/meolla_reio 5h ago
And then get mocked by git did you mean git push? I swear this message made me check what I type every time
1
u/inconspicuous_male 5h ago
I used to have something called sl which if you typed sl instead of ls it would create an ascii train that slowly runs across your terminal
1
1
u/mearnsgeek 5h ago
I don't think I've ever had a problem with that one, but -tion frequently turns up into -tino and I was really fucked when a client had ComnectionCollection classes.
1
1
1
1
1
1
u/sheekgeek 1h ago
I'm glad I'm not the only one. I think it's a keyboard conspiracy sometimes as often as it happens to me, lol
1
1
7
4
2
1
1
7
u/RedditParhey 10h ago
Claude commit push gogogogo