2

I do run reset quite frequently while using GNOME Terminal. I've been trying to find a way to do (exactly) that using a shortcut. Reset and Clear (Ctrl + K) "resets" the terminal in a similar fashion, but I have to press Enter to get a prompt back.

Is there a way to get the behavior I'm describing?

I've tried iTerm 2.x in macOS, and Ctrl + K does exactly that, so I think there has to be a way to do this in GNOME Terminal as well, since this looks like a very basic workflow that many people might use on a daily basis.

x80486
  • 1,043

1 Answers1

1

Add to your .bashrc:

bind -x '"\C-k":reset xterm'

Source the file:

$ . .bashrc

Now when you press Ctrl+k you should get the desired result.