Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Gnome terminal and all its derivatives support ctrl-c and ctrl-v natively for copy/paste if you just set those as the keybindings in its preferences.

It then uses smart detection for when to send SIGINT vs copy/paste.

if there's no running process, it copies on ctrl-c

If there's a running process and no selected text, it sends sigint on ctrl-c

If there's a running process and selected text, it copies

It will always send sigint on ctrl-shift-c

---

Frankly I wish they would just default to that setting. It's much more pleasant to use than having to remember a different copy/paste shortcut for working in the terminal.

One of the first things I change on any new machine I setup for desktop use.



Consider applying for YC's Summer 2026 batch! Applications are open till May 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: