Start the Terminal, and copy-paste these commands:
S=$(defaults read com.apple.Terminal "Window Settings" | perl -0777 -pe '$X=q#If you don't get any error messages, exit from the Terminal application (closing the individual terminal windows is not enough) and start it again.
"$F729" = "\033[1;2H";
"$F72B" = "\033[1;2F";
"$F72C" = "scrollPageUp:";
"$F72D" = "scrollPageDown:";
F729 = "\033[H";
F72B = "\033[F";
F72C = "\033[5~";
F72D = "\033[6~";
#; s@(keyMapBoundKeys *= *\{.*?)\};\n@$1$X};@gs')
test "$S" && defaults write com.apple.Terminal "Window Settings" "$S"
Alternatively, you can change the individual key bindings in Terminal / Preferences / Startup / Basic / Keyboard.
The allow non-ASCII characters (such as accented letters) in the bash command line, run
cat >>~/.inputrc <<'END'To make the PageUp and PageDown keys search the shell history forward and backward for a command with a prefix before the cursor, run
set meta-flag On
set convert-meta Off
set output-meta On
END
bind -f ~/.inputrc
cat >>~/.inputrc <<'END'
"\e[5~": history-search-backward
"\e[6~": history-search-forward
END
bind -f ~/.inputrc
No comments:
Post a Comment