mirror of
https://github.com/boxpositron/absolute-dotfiles.git
synced 2026-02-28 11:40:37 +00:00
feat(setup-mac.sh): add installation checks for gh, pyenv, and pyenv-virtualenv to improve setup process
build(setup-mac.sh): enhance brew installation logic for multiple dependencies docs(setup-mac.sh): provide clear instructions for installing missing dependencies refactor(setup-mac.sh): reorganize code for better readability and maintainability
This commit is contained in:
25
setup-mac.sh
25
setup-mac.sh
@@ -169,6 +169,31 @@ else
|
|||||||
curl -sSL https://install.python-poetry.org | python3 -
|
curl -sSL https://install.python-poetry.org | python3 -
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Check if gh is installed
|
||||||
|
if command -v gh &> /dev/null; then
|
||||||
|
echo "gh is installed"
|
||||||
|
else
|
||||||
|
echo "gh is not installed"
|
||||||
|
echo "Installing gh with brew..."
|
||||||
|
brew install gh
|
||||||
|
|
||||||
|
# Check if pyenv is installed
|
||||||
|
|
||||||
|
if command -v pyenv &> /dev/null; then
|
||||||
|
echo "pyenv is installed."
|
||||||
|
else
|
||||||
|
echo "pyenv is not installed."
|
||||||
|
echo "Installing pyenv with brew..."
|
||||||
|
brew install pyenv
|
||||||
|
|
||||||
|
# Check if pyenv-virtualenv is installed
|
||||||
|
if command -v pyenv &> /dev/null; then
|
||||||
|
echo "pyenv-virtualenv is installed."
|
||||||
|
else
|
||||||
|
echo "pyenv-virtualenv is not installed."
|
||||||
|
echo "Installing pyenv-virtualenv with brew..."
|
||||||
|
brew install pyenv-virtualenv
|
||||||
|
|
||||||
# Check if anaconda is installed
|
# Check if anaconda is installed
|
||||||
|
|
||||||
if command -v conda &> /dev/null; then
|
if command -v conda &> /dev/null; then
|
||||||
|
|||||||
Reference in New Issue
Block a user