05 11 / 2011

Helpful Mac Shortcut

Control-Eject Show shutdown dialog
Option-Command-Eject Put the computer to sleep
Control-Command-Eject Quit all applications (after giving you a chance to save changes to open documents), then restart the computer
Control Option-Command-Eject Quit all applications (after giving you a chance to save changes to open documents), then shut down the computer

Mac Terminal
http://stackoverflow.com/questions/81272/is-there-any-way-in-the-os-x-terminal-to-move-the-cursor-word-by-word

  • Meta-d to delete a word starting from the current cursor position
  • Ctrl-a to jump to start of the line
  • Ctrl-e to jump to end of the line
  • Ctrl-k to kill the line starting from the cursor position´
  • Ctrl-y to paste text from the kill buffer
  • Ctrl-r to reverse search for commands you typed in the past from your history
  • Ctrl-s to forward search (works in zsh for me but not bash)
  • Ctrl-f to move forward by a char
  • Ctrl-b to move backward by a char