how to change the escape key double tap function ?

10 views
Skip to first unread message

Mu ah

unread,
Apr 25, 2025, 10:22:26 PMApr 25
to iterm2-discuss
atm when i press the escape `⎋` key 2 times "double tap" it will print the last command from history, 
so is there a way to disable this or change it to do something else ?

Richard Mitchell

unread,
Apr 28, 2025, 6:38:27 AMApr 28
to iterm2-discuss
Sure, but this is probably being done by your shell, not iTerm2.

If you're running zsh, this can be used to change it:

# Add this to ~/.zshrc
bindkey -s '\e\e' 'clear && echo "Double escape pressed!"'

Reply all
Reply to author
Forward
0 new messages