Last active
December 18, 2015 23:49
-
-
Save pataiji/5864259 to your computer and use it in GitHub Desktop.
OS Xのopenのalias的なfunction。
引数を渡すとそれを開きます。渡さないと現在の場所を開きます。
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 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