Skip to content

Instantly share code, notes, and snippets.

@pataiji
Last active December 18, 2015 23:49
Show Gist options
  • Save pataiji/5864259 to your computer and use it in GitHub Desktop.
Save pataiji/5864259 to your computer and use it in GitHub Desktop.
OS Xのopenのalias的なfunction。 引数を渡すとそれを開きます。渡さないと現在の場所を開きます。
function op {
if [ -n "$1" -a -e "$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