Skip to content

Instantly share code, notes, and snippets.

@shigemk2
Created March 30, 2014 05:02
Show Gist options
  • Save shigemk2/9867818 to your computer and use it in GitHub Desktop.
Save shigemk2/9867818 to your computer and use it in GitHub Desktop.
Mac専用 open script
#! /bin/sh
function usage() {
echo "Usage : ${0} [option]"
echo ""
echo " アプリケーション実行ショートカット"
echo "e emacs"
echo "a activity monitor"
echo "g google chrome"
echo ""
exit
}
while getopts eag opt
do
case ${opt} in
e)
open "/Applications/Emacs.app";;
a)
open "/Applications/Utilities/Activity Monitor.app";;
g)
open "/Applications/Google Chrome.app";;
\?)
usage ;;
esac
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment