Skip to content

Commit

Permalink
Update inputrc to work with modern iTerm2
Browse files Browse the repository at this point in the history
I'm not sure when things changed in iTerm2 or what exactly changed, but
as of iTerm2 3.5, I find that I need these mappings in order to get the
behavior described in the comments.
  • Loading branch information
jasonrudolph committed Dec 6, 2024
1 parent 35a1d84 commit fca8b60
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions inputrc
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Configure option + right arrow to move forward one word in iTerm2
# https://www.gnu.org/software/bash/manual/bashref.html#Commands-For-Moving
"\e\e[C": forward-word
"\e[1;3C": forward-word

# Configure option + left arrow to move backward one word in iTerm2
# https://www.gnu.org/software/bash/manual/bashref.html#Commands-For-Moving
"\e\e[D": backward-word
"\e[1;3D": backward-word

0 comments on commit fca8b60

Please sign in to comment.