Skip to content

Instantly share code, notes, and snippets.

@gecko655
Last active June 15, 2016 03:16
Show Gist options
  • Save gecko655/ba83c3b55da5215d75bde959bcc8f9ff to your computer and use it in GitHub Desktop.
Save gecko655/ba83c3b55da5215d75bde959bcc8f9ff to your computer and use it in GitHub Desktop.
#!/bin/bash
# Usage:
# ./chrome_launcher.sh [user_data_dir]
# user_data_dirにあるユーザーデータディレクトリを使用しクロームを起動する。
# user_data_dirが指定されなかった場合は、DEBUGという名前のユーザーデータディレクトリを使用する
USER_DATA_DIR=${1-DEBUG}
/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --user-data-dir="$HOME/Library/Application Support/Google/Chrome/$USER_DATA_DIR/"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment