From 396e34da41f9a1fd776ee79c3ef8c569dade30a1 Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Tue, 9 Jan 2024 03:02:36 +0000 Subject: [PATCH] feat(pyenv+macos): install Command Line Tools for macOS --- pyenv/install.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pyenv/install.sh b/pyenv/install.sh index 2ba8ef7..cc93430 100644 --- a/pyenv/install.sh +++ b/pyenv/install.sh @@ -4,6 +4,13 @@ __init_pyenv() { set -e set -u + b_os="$(uname -s)" + if test "${b_os}" = 'Darwin'; then + if ! test -x /Library/Developer/CommandLineTools/usr/bin/git; then + "$HOME/.local/bin/webi" commandlinetools + fi + fi + curl -fsSL https://github.com/pyenv/pyenv-installer/raw/master/bin/pyenv-installer | bash if [ ! -f ~/.bashrc ] || ! grep -q 'pyenv init' ~/.bashrc; then