Skip to content

Instantly share code, notes, and snippets.

@kyleridolfo
Created June 16, 2015 19:25
Show Gist options
  • Save kyleridolfo/d21c986c07b1184581bf to your computer and use it in GitHub Desktop.
Save kyleridolfo/d21c986c07b1184581bf to your computer and use it in GitHub Desktop.
Open shortcut for bash
function o() {
currentDir='.'
open ${1-$currentDir}
}
@kyleridolfo
Copy link
Author

Just type o to open current folder in Finder. Type o filename to open a file or folder with default app.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment