浏览代码

setup LaunchAgents for DBs

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

+ 3 - 2
.profile

@@ -95,8 +95,9 @@ _install_dev_py() {
 
 _install_dev_db() {
 	_install_homebrew
-	which mongod >/dev/null  ||  brew install mongodb
-	which redis >/dev/null   ||  brew install redis
+	which mongod >/dev/null  ||  brew install mongodb     &&  ln -sfv "$(brew --prefix mongodb)"/*.plist ~/Library/LaunchAgents/
+	which redis >/dev/null   ||  brew install redis       &&  ln -sfv "$(brew --prefix redis)"/*.plist ~/Library/LaunchAgents/
+	which pg_config          ||  brew install postgresql  &&  ln -sfv "$(brew --prefix postgrsql)"/*.plist ~/Library/LaunchAgents/
 }
 
 _install_dev_go() {