From ecaea525e06cea84609a027d2e2032ec85aa6b43 Mon Sep 17 00:00:00 2001 From: Paul van Noort Date: Wed, 7 Apr 2021 13:27:34 +0200 Subject: [PATCH] bootstrap --- bootstrap.sh | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 bootstrap.sh diff --git a/bootstrap.sh b/bootstrap.sh new file mode 100644 index 0000000..4c2b67f --- /dev/null +++ b/bootstrap.sh @@ -0,0 +1,31 @@ +#!/bin/bash +alias python=python3 +pyenv install --list | grep -Ev '[abc-]' | tail -1 +python -V 2>&1 | awk '/Python/{ split($2, a, "."); print a[1]"."a[2] }' + +if curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py ; +then +python get-pip.py +fi + +export PATH="$HOME/Library/Python/${pyver}/bin/:$PATH" +python -m pip install --user ansible + +xcode-select --install > /dev/null 2>&1 +if [ "$?" == '0' ]; then + sleep 1 + osascript <