Home, End, Page Up, Page End >> Fix Mac OSX

Cuma catatan biar terminal di mac lebih manusiawi.

1.Open Terminal.app
2.Open the Preferences window (CMD+,)
3.Click the Settings tab
4.Select your current Settings theme, and click on the Keyboard tab
5.Edit (or Add) the entry for Home
  Set Action: to send string to shell:
  Set the string to \001 (or press Ctrl+a)
6.Edit (or Add) the entry for End
  Set Action: to send string to shell:
  Set the string to \005 (or press Ctrl+e)
7.Edit (or Add) the entry for Page Up
  Set Action: to send string to shell:
  Set the string to \033[5~ (copy and paste this in)
8.Edit (or Add) the entry for Page Down
  Set Action: to send string to shell:
  Set the string to \033[6~ (copy and paste this in)
9.Close the settings window.

Sumber: http://theandystratton.com/2009/fixing-home-end-page-up-and-page-down-in-leopards-terminal

-----

Buat Folder dan File berikut:

~/Library/KeyBindings/DefaultKeyBindings.dict

{
    /* home */
    "\UF729"  = "moveToBeginningOfLine:";
    "$\UF729" = "moveToBeginningOfLineAndModifySelection:";

    /* end */
    "\UF72B"  = "moveToEndOfLine:";
    "$\UF72B" = "moveToEndOfLineAndModifySelection:";

    /* page up/down */
    "\UF72C"  = "pageUp:";
    "\UF72D"  = "pageDown:";
}

Komentar

Postingan populer dari blog ini