feat(pyenv+macos): install Command Line Tools for macOS

This commit is contained in:
AJ ONeal
2024-01-09 03:02:36 +00:00
parent e00fe40725
commit 396e34da41

View File

@@ -4,6 +4,13 @@ __init_pyenv() {
set -e set -e
set -u 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 curl -fsSL https://github.com/pyenv/pyenv-installer/raw/master/bin/pyenv-installer | bash
if [ ! -f ~/.bashrc ] || ! grep -q 'pyenv init' ~/.bashrc; then if [ ! -f ~/.bashrc ] || ! grep -q 'pyenv init' ~/.bashrc; then