Skip to content

Instantly share code, notes, and snippets.

@devbeno
Last active April 16, 2024 21:09
Show Gist options
  • Save devbeno/db933dc92108e271df047283190e8f29 to your computer and use it in GitHub Desktop.
Save devbeno/db933dc92108e271df047283190e8f29 to your computer and use it in GitHub Desktop.
download.sh
#!/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