Skip to content

Instantly share code, notes, and snippets.

@mikker
Created September 8, 2008 12:02
Show Gist options
  • Save mikker/9422 to your computer and use it in GitHub Desktop.
Save mikker/9422 to your computer and use it in GitHub Desktop.
Shortcut for Mac OS X's `open`
# Opens the current folder or a given file/folder using Finder
# Usage:
# $ o -- opens the current folder
# $ o Desktop -- opens the Desktop-folder
# $ o .profile -- open the file ".profile"
o(){
if [[ $1 ]]; then
open $1
else
open .
fi
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment