F5 to reload a tab in Google Chrome

I’ve been wanting to user Chrome more and more lately but one thing standing in my way was F5 to reload a tab. I know on a Mac it’s just Cmd+R but my muscle memory refuses to accept this. Luckily there’s a simple fix – let OSX interpret for you.

  1. Open the keyboard settings window. To do this either type ‘Keyboard‘ into Spotlight (the magnifying glass at the top right of the screen) or open the Apple menu and press System Preferences -> Keyboard.
  2. Click on the Keyboard Shortcuts tab.
  3. Click on Application Shortcuts in the left pane.
  4. Click on the plus (+) at the bottom and enter the following:
    Application: Google Chrome.app
    Menu Title: Reload This Page
    Keyboard Shortcut: press F5 on your keyboard
  5. Click add and close the settings window, you’re finished, time to test!

    Add F5 to reload Chrome Tab to OSX.

    Add F5 to reload Chrome Tab to OSX.


Specifying a port for scp to use

This is a trick that gets me every time. To specify a port for ssh you need the argument -p but for scp it is -P. scp -p preserves the modification times of the files you are transferring. I’d love to know why they are different. I can only assume it’s because the need to preserve modification times came before the need to specify a port and they wouldn’t change backward compatibility.


ssh -p
scp -P

Opening a folder or application from the terminal in OSX

I’ve become pretty dependent on the gnome-open command in Gnome. After I began using OSX more frequently I was in need of an equivalent, it’s:

% open .

Yep, it’s really that simple. While we’re on the topic you can also launch applications with the open command.

% open -a /Applications/Safari.app

You can also pass arguments to the application to be opened:

% open -a /Applications/Safari.app http://www.somewebpage.com

This is pretty sweet and can be extended extracted to a bash script that lives somewhere on your path for example /usr/bin.


open -a /Applications/$1.app $2

Add execute permissions to the file ( chmod +x /usr/bin/run) and it can be called with:

% run VLC agoodsong.ogg