From 75539226b56cf275c1602bd7a3c9a85d09a2565e Mon Sep 17 00:00:00 2001 From: Andrew Miner Date: Tue, 8 Mar 2022 08:36:48 -0700 Subject: [PATCH] Add command to install PostgreSQL via Brew --- install.sh | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/install.sh b/install.sh index f198700..cf36f5b 100755 --- a/install.sh +++ b/install.sh @@ -21,6 +21,7 @@ USAGE: $0 |all go install go language tools heroku install the Heroku CLI node install NodeJS language tools + postgresql install PostgreSQL python install Python language tools ruby install Ruby language tools typescript install TypeScript language tools @@ -171,9 +172,15 @@ function __install_node() { __install_with npm nodemon } +function __install_postgresql() { + __install_with brew postgresql + __install_with brew unixodbc +} + function __install_python() { __install_with brew pyenv - VERSION=$(pyenv install --list | sed 's/^ *//' | grep '^3.10' | tail -1) + VERSION="3.10.0" + echo "Installing Python $VERSION" pyenv install -s "$VERSION" pyenv global "$VERSION" @@ -181,6 +188,7 @@ function __install_python() { pip install --upgrade pip __install_with pip jedi + __install_with pip poetry } function __install_ruby() { @@ -206,7 +214,7 @@ function __install_typescript() { } function __install_vim() { - __upgrade_brew + __update_brew ls -l $(which vim) | grep "Cellar/vim" >/dev/null || __install_with brew vim vim +PlugClean +PlugInstall +qall