Menu Sidebar
Menu

Optimal Layout

About it

Optimal Layout is the perfect tool for managing windows on your mac. It allows you to swap windows, move them between multiple monitors, and resize them; all without lifting your hand from the keyboard. In the day to day tasks of software development, the capabilities of this tool are priceless and significantly more efficient than the standard tools and shortcuts that come with the Mac OS.

How I use it

Optimal layout is nice right “out of the box”. However, I set up a few custom shortcuts and settings that make it indispensable. I recommend you look through all the setting to find what is best for you. Below are some of the shortcuts that I find really useful:

  • (Option + Tab) -> Activate & Find
  • (Option + 0) -> Switch Monitor
  • (Option + 1) -> Resize Window to Full Screen
  • (Option + 2) -> Resize Window to Half Screen Vertically
  • (Option + 3) -> Resize Window to Half Screen Horizontally
  • (Option + 4) -> Resize Window to One Fourth Screen

Note: Pressing the shortcut multiple times will rotate through the possible window locations

Where to find it

You can find more information and the download for Optimal Layout here.

Bash: Quickly view & execute previous commands

In Bash, you can execute the last command you ran starting with some prefix like so:

# executes a previous command starting with 'my-cmd'
$ !my-cmd

Oftentimes, you’re not sure you want to run that command without reviewing it first; it might be destructive or otherwise harmful. So, you can view it in fulll like so:

# echos 'my-cmd-in-full arg1 arg2 ...'
$ !my-cmd:p

Previewing your command has the useful side effect of registering it as the ‘last command’. That means, after a preview, you can quickly execute it with a double bang:

# preview command and then execute
$ !my-cmd:p
$ !!

[via link=”https://coderwall.com/p/xscqiq” title=”S.R.Garcia” label=”CoderWall”]

Newer Posts
Older Posts

Grant Henke

Blog, Portfolio, and Scratch Space