In December, I got a Macbook Air that I’m now using as a primary development machine. Before that, I was developing on a Windows 7 machine with heavy reliance on Git bash and Cygwin, and using Linux on the server. I’ve used Linux as a primary desktop at times, but found both dual-boot and VMs too much of a hassle.
I’m enjoying the Mac, but one of the biggest adjustments is keyboard shortcuts.
Here are some shortcuts that are specific to the Mac Terminal (and Terminal alternatives like iTerm 2):
|Cmd+Left Arrow||Ctrl+A||Home||Go to start of line|
|Cmd+Right Arrow||Ctrl+E||End||Go to end of line|
|Shift+Cmd+Left Arrow||Shift+Home||Select to start of line|
|Shift+Cmd+Right Arrow||Shift+End||Select to end of line|
|Ctrl+K||Clear line after cursor|
|Ctrl+U||Clear line before cursor|
Some general shortcuts:
|Cmd+Down Arrow||PageDn||Go one page down|
|Cmd+Up Arrow||PageUp||Go one page up|
|Cmd+Space||Windows key||Start menu/Spotlight|
|Cmd+Opt+Esc||Ctrl+Shift+Esc||Open Task Manager|
|Cmd+Delete||Delete||Delete selected files|
|Cmd+Delete||Delete||Delete character in front of the cursor|
|Cmd+R||F5||Reload current webpage|
|Cmd+Shift+3||Save screenshot to desktop/Dropbox|
|Cmd+Ctrl+Shift+3||PrtScr||Copy screenshot to clipboard|
|Cmd+Shift+4||Save screenshot of an area of screen to desktop/Dropbox|
|Cmd+Ctrl+Shift+4||PrtScr (SnagIt)||Copy screenshot of an area of screen to clipboard|
Of course, there are many more shortcuts.