|
A few more of my tips through the years: Windows: Alt+space, [n, x, s, m] (n for minimize, x for maximize, s to change size. s, then arrow for which side of the window to drag, then move with arrows. m for move, also with arrows). Ctrl+esc, menu bar. windows key+e = explorer, windows key+r = run dialog. alt+print screen = system preferences. (Haven't used windows in years, so not sure if these shortcuts persisted through Vista and 7. I hear they did) OS X: First, get Quicksilver. Seriously. Other then command+tab to switch apps which everyone knows, command+` (tilde key) switches windows within apps. I'm surprised how many people don't know that. Also, an awesome shortcut is Command+tabbing to a minimized window, then before releasing command, press down option, then let go of command while holding down option. That restores the minimized window and switches to it, really not bad after you get the hang of it. command+m minimizes. ctrl+f2 (might need to add 'fn' on laptops) puts the selection in the menu so you don't have to use the mouse to select it. bash: ctrl+r is invaluable. that will do a reverse search through history on whatever you type next. only caveat: once you leave the search mode, you'll actually be in that place in history, hitting up will go back even further. I usually run an empty command (like echo) to get back to the bottom. Hitting meta (esc in my case), then dot inserts the last argument of the previous command. Great for edit,execute cycle. i.e.
$ vi script.py
$ ./[esc, .]
running '^str^strb^' in bash will run the previous command, replacing str with strb. !! is previous command, !!:0 is first token of previous command (usually the binary running), !!:1 is first arg, etc. |
If you use zsh (and you really should. It is better than bash in almost every way), you can just ctrl-C to get out of searches.