Browse Source

best inputrc ever

main
pvincent 19 hours ago
parent
commit
98ef906bc1
  1. 33
      etc/inputrc

33
etc/inputrc

@ -19,27 +19,28 @@ set input-meta on
set output-meta on
set convert-meta off
# { up, down } for history search
"\e[A": history-search-backward
"\e[B": history-search-forward
# CTRL + { left, right } for moving around Big Words
"\e[1;5D": vi-backward-bigword
"\e[1;5C": vi-forward-bigword
# CTRL + { left, right } for moving around words
"\e[1;5D": vi-backward-word
"\e[1;5C": vi-forward-word
# ALT + { left, right } for moving around words (slower)
"\e[3;5D": vi-backward-word
"\e[3;5C": vi-end-word
# ALT + { left, right } for moving around Big Words (faster)
"\e[1;3D": vi-backward-bigword
"\e[1;3C": vi-forward-bigword
# SHIFT + { backspace, delete } for suppressing until start/end (ghostty)
"\e[3;2~": kill-line
"\e[127;2u": backward-kill-line
# CTRL + { backspace, delete } for word suppressing
"\C-H": backward-kill-word
# ALT + backspace for suppressing until start (alternative)
# ALT + { backspace, delete } for suppressing until start/end (faster)
"\e[3;3~": kill-line
"\e\C-?": backward-kill-line
# ALT + delete for suppressing whole line
"\e[3;3~": kill-whole-line
# ALT + { backspace, delete } for suppressing the whole line
"\e[3;2~": kill-whole-line
"\e[127;2u": kill-whole-line
# { up, down } for history search
"\e[A": history-search-backward
"\e[B": history-search-forward
# SHIFT + (CTRL) + Arrows: does nothing
"\e[1;2D": ''

Loading…
Cancel
Save