Skip to content

Instantly share code, notes, and snippets.

@squarism
Last active December 20, 2015 15:19
Show Gist options
  • Save squarism/6153305 to your computer and use it in GitHub Desktop.
Save squarism/6153305 to your computer and use it in GitHub Desktop.
Keyboard shortcuts

The All-Singing, All-Dancing Keyboard

Here's all the custom and normal keyboard shortcuts I use all the time. This is mostly for a Mac.

ZSH

In iTerm, set left alt to be +ESC

  • ALT + b - Move one word backward.
  • ALT + f - Move one word forward.
  • Ctrl-r - Search history, do this instead of up arrows, you'll make less mistakes when in a rush.
  • Ctrl-e/a - Move to beginning and end of line without deleting anything.

Zephyros

  • ALT + h - Move a window to the LEFT side of the screen, splitting it vertically 50/50.
  • ALT + l - Move a window to the RIGHT side of the screen, splitting it vertically 50/50.
  • ALT + j - Resize a window down 50% in height and move it down. This is great with the above for making fast quads.
  • ALT + l - Resize a window up 50% in height but move it up. This is great with the above for making fast quads.

Alfred

  • Ctrl-Space - Launch bar

Total Spaces

  • Ctrl-Cmd-Arrow keys - Move to a workspace.

OSX

  • Ctrl-Shift-Eject - Put displays to sleep and lock.
  • Cmd-Shift-4 - Take a screenshot of a window.
  • Cmd-Right-arrow - Move to end of line in OS native text lines. Like End on windows.
  • Cmd-Left-arrow - Like Home on windows. (ctrl-e and ctrl-a work too)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment