浏览代码

fix for karma not finding Google Chrome

Kyle P Davis 10 年之前
父节点
当前提交
2313581958
共有 1 个文件被更改,包括 6 次插入0 次删除
  1. 6 0
      .profile

+ 6 - 0
.profile

@@ -19,6 +19,12 @@ fi
 # Default editor
 export EDITOR="vim"
 
+# Help things find Google Chrome
+if [ "$OS" = "Darwin" ]; then
+	CHROME_BIN="$HOME/Applications/Google Chrome.app/Contents/MacOS/Google Chrome"
+	! [ -f "$CHROME_BIN" ] || export CHROME_BIN
+fi
+
 # Configure go lang
 if [ "$OS" = "Darwin" ]; then
 	export GOROOT="$BREW_PREFIX/opt/go/libexec"