Last active
April 16, 2024 21:09
-
-
Save devbeno/db933dc92108e271df047283190e8f29 to your computer and use it in GitHub Desktop.
download.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
cat <<EOS | |
AkkeyLab | |
The elapsed time does not matter. | |
Because speed is important. | |
EOS | |
function command_exists { | |
command -v "$1" >/dev/null | |
} | |
# | |
# Install homebrew. | |
# | |
if ! command_exists brew; then | |
echo " --------- Homebrew ----------" | |
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" | |
echo '# Set PATH, MANPATH, etc., for Homebrew.' >> ~/.zprofile | |
echo 'eval "$(/opt/homebrew/bin/brew shellenv)"' >> ~/.zprofile | |
source ~/.zprofile | |
brew -v | |
echo " ------------ END ------------" | |
fi | |
# | |
# Install git | |
# | |
if [ ! -e "$(brew --prefix)/bin/git" ]; then | |
echo " ------------ Git ------------" | |
brew install git | |
brew info git | |
git --version | |
echo " ------------ END ------------" | |
fi | |
# | |
# mac-auto-setup.git | |
# | |
echo " ---- mac-auto-setup.git -----" | |
git clone https://github.com/devbeno-space/mac-auto-setup.git | |
echo " ------------ END ------------" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment