下面内容加入你的 inputrc:
"\eh": backward-char "\el": forward-char "\ej": next-history "\ek": previous-history "\eH": backward-word "\eL": forward-word "\eJ": beginning-of-line "\eK": end-of-line
写好以后,不管是 bash, zsh 还是 python 终端都可以:
比默认键位好按多了