MSysGit Bash – how to enable Ctrl+Left / Right arrows?

At your Bash prompt, press Ctrlv CtrlLeft-Arrow and Ctrlv CtrlRight-Arrow and make note of the output. You should see something like: ^[OD and ^[OC or similar. Add the following lines to your ~/.inputrc:

"\eOC": forward-word
"\eOD": backward-word

where you will substitute \e for escape (^[) and the rest of the characters you got (OD, OC or similar).

To re-read the file and make the changes active immediately, press Ctrlx Ctrlr.

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)