Browse Source

setup LaunchAgents for DBs

Kyle P Davis 10 years ago
parent
commit
00a7c05a5f
1 changed files with 3 additions and 2 deletions
  1. 3 2
      .profile

+ 3 - 2
.profile

@@ -95,8 +95,9 @@ _install_dev_py() {
 
 
 _install_dev_db() {
 _install_dev_db() {
 	_install_homebrew
 	_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() {
 _install_dev_go() {