Created
June 16, 2015 19:25
-
-
Save kyleridolfo/d21c986c07b1184581bf to your computer and use it in GitHub Desktop.
Open shortcut for bash
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function o() { | |
currentDir='.' | |
open ${1-$currentDir} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Just type
o
to open current folder in Finder. Typeo filename
to open a file or folder with default app.