this post was submitted on 10 Sep 2023
651 points (96.8% liked)

Programmer Humor

18255 readers
561 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 1 year ago
MODERATORS
 
top 50 comments
sorted by: hot top controversial new old
[–] [email protected] 65 points 9 months ago (6 children)

Use ctrl +shift +c to copy in terminal

[–] errer 106 points 9 months ago (2 children)

Use ctrl +shift +c to copy in terminal

Ah yes the classic dangerous command made safe by a modifier key. Put the gun to your head and pull the trigger, just make sure you’re holding down the shift key and it’s all good!

[–] [email protected] 6 points 9 months ago

It's all good bro the shafty is on

load more comments (1 replies)
[–] [email protected] 15 points 9 months ago* (last edited 9 months ago)

Ctrl+insert to copy and shift+insert also works! It was the DOS way of doing it.

[–] TheWoozy 12 points 9 months ago

Or just left click to highlight & middle click to paste.

[–] [email protected] 4 points 9 months ago (2 children)

Just have to be different don't they.

[–] [email protected] 2 points 9 months ago

Or change copy to command+c.. I’m gonna be honest, OSX is right here. And quite strangely it is very hard to customize your linux to imitate that.

load more comments (1 replies)
[–] Mr_Dr_Oink 3 points 9 months ago

This is how my secure crt is set up when im accessing switches. If i use ctrl+c it cancels what im doing and drops back to priv mode and its so frustrating.

[–] SuperIce 2 points 9 months ago

Or just highlight the text and use middle click to paste

[–] confusedbytheBasics 61 points 9 months ago (3 children)

Select text to copy. Middle click to paste.

Don't use Ctrl...

load more comments (2 replies)
[–] [email protected] 35 points 9 months ago (1 children)

It didn't load completely at first, so i saw something like this and i think it is even better that way:

[–] [email protected] 3 points 9 months ago (1 children)

Now I'm upset this wasn't the original haha

[–] [email protected] 2 points 9 months ago

I think it works better with the context of the original already present.

[–] kamen 33 points 9 months ago* (last edited 9 months ago) (3 children)

I've almost gotten into the habit of hitting Ctrl+Shift+C when I want to copy something because of that.

[–] vpklotar 20 points 9 months ago (1 children)

I do that all the time. Opens up developer tools on firefox if you do it.

[–] [email protected] 9 points 9 months ago

I open developer tools every day doing that!

[–] [email protected] 10 points 9 months ago (2 children)

Yes. And on Microsoft Teams that triggers a chat call.

[–] [email protected] 8 points 9 months ago

Burn it with fire!

[–] scottywh 3 points 9 months ago
[–] [email protected] 3 points 9 months ago (4 children)

That solution ish the worst. Ctrl-shift-c does a shitload of different things in different programs, and in browsers it does different things per page.

Ctrl-ins, shift-ins, shift-del for the win bit THEN some programs simply refuse to support that.

I have like 4 different copy paste short cuts because of this and it sucks

[–] kamen 2 points 9 months ago (1 children)

I'm not saying it's great, but at least in my use I haven't seen it being destructive/disruptive like Ctrl+C is.

load more comments (1 replies)
load more comments (3 replies)
[–] [email protected] 22 points 9 months ago (2 children)

Kitty has the feature that if you have text selected it will copy and if not then it will interrupt the command

[–] [email protected] 13 points 9 months ago (1 children)

Yeah I love this feature. I love it so much that I'll also tell everyone who cares to listen how you can use it. Edit your ~/.config/kitty/kitty.conf file to include map ctrl+c copy_and_clear_or_interrupt and you are good to go. Only issue I have that it doesn't seem to work in the vscode terminal.

[–] [email protected] 1 points 9 months ago

Any keybinds I have set don't work in vscodium terminal for me too. I mainly use neovim for those things.

[–] [email protected] 6 points 9 months ago

Oh what a great way to further entrench a bad habbit! Hang on I need to remedy some refactored code with rm -rf * which Kitty made safe if I’m in a directory with my project files 🙄

[–] [email protected] 19 points 9 months ago

Ctrl/Shift+Insert gang rise!

[–] [email protected] 8 points 9 months ago (5 children)

I bought a Mac to solve this problem lol

[–] [email protected] 14 points 9 months ago

Should have used middle mouse button instead

[–] [email protected] 6 points 9 months ago

That sounds a lot like

My rear passenger tire was about 3psi low so I bought a new Grand Cherokee

[–] jungle 5 points 9 months ago* (last edited 9 months ago)

Yeah, I was looking at this wondering why anyone would stop a program just to copy a line, and then I remembered that not everyone uses a Mac.

[–] EqMinMax 3 points 9 months ago

Modern problems require costly solutions.

[–] [email protected] 3 points 9 months ago

you can literally change the shortcut

[–] [email protected] 8 points 9 months ago

I see myself in this meme and I do not like it.

[–] yokonzo 7 points 9 months ago

I literally just learned about Ctrl+c last week, I've been using terminal casually since I was 10, and always thought it was dumb that when a script was stuck hanging that I had to close the command window and redo my steps. I always thought it was weird that you had to right click to copy something and never thought why that might be the case, I have no excuses.

[–] [email protected] 7 points 9 months ago (1 children)

I've changed this on all my terminals and I'm not ashamed of it.

[–] [email protected] 33 points 9 months ago (1 children)

True strength is bending the machine to appease your habits, not to bend your habits to appease the machine.

[–] Storyteller 10 points 9 months ago (1 children)

No. The flesh is weak. The machine is immortal.

Flesh is fallible but ritual honours the machine spirit.

All hail the Omnissiah.

[–] [email protected] 7 points 9 months ago

Running a long command and didn’t ctrl-D it…

[–] [email protected] 6 points 9 months ago (2 children)

I don't remember the last time I used ctrl-C. It's always select or "+y.

[–] [email protected] 2 points 9 months ago

I additionally mapped that latter one to F2, because being able to repeatedly copy from VIM and paste into another application without having to move your hand between mouse and keyboard is nice.

Of course, that's VIM. If you meant "vim mode" in shell, then that's a different story.

load more comments (1 replies)
load more comments
view more: next ›