The words Under construction in black text on a yellow background with diagonal black stipes surrounding it
I'm in the process of moving my site. It's still a work in progress. Please excuse the mess and broken links.

Prevent Command R from Resetting The Terminal Screen in iTerm2

TODO: Pull subtitle into page object

The command+R hotkey in iTerm2 is bound to "Reset" the terminal window in the top level menu.

I kept hitting it when I thought I was in my browser and was trying to refresh it. The result is it kept clearing nvim which was a pain.

Luckily, this can be disabled. The fix I used was to go into System Preferences < Keyboard < Shortcuts and then add iTerm2 as an application with a remap of "Reset" to command+8. That overwrites the ability to jump directly to the 8th tab. For some reason neither it or the reset work, but I'm fine with that.

I just wanted to prevent the reset which is what it does with this in place.

Debugging Stuff

I'm moving stuff around right now. All this below is helping me figure out where to put stuff

        -- title

Prevent Command R from Resetting The Terminal Screen in iTerm2

-- p

The command+R hotkey in iTerm2 is bound to "Reset" the terminal window in the top level menu.

-- p

I kept hitting it when I thought I was in my browser and was trying to refresh it. The result is it kept clearing nvim which was a pain.

-- p

Luckily, this can be disabled. The fix I used was to go into System Preferences > Keyboard > Shortcuts and then add iTerm2 as an application with a remap of "Reset" to command+8. That overwrites the ability to jump directly to the 8th tab. For some reason neither it or the reset work, but I'm fine with that.

-- p

I just wanted to prevent the reset which is what it does with this in place.


-- categories
-- Command Line

-- metadata
-- date: 2022-05-08 19:54:12
-- id: 28u6jeq5
-- status: scratch
-- type: post
-- SCRUBBED_NEO: false
-- site: aws