Skip to content

Instantly share code, notes, and snippets.

@sander3
Last active July 18, 2021 19:16
Show Gist options
  • Save sander3/83b3d9d57b45bfa07692cc31a77bd6c1 to your computer and use it in GitHub Desktop.
Save sander3/83b3d9d57b45bfa07692cc31a77bd6c1 to your computer and use it in GitHub Desktop.
install.sh
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
echo 'eval "$(/opt/homebrew/bin/brew shellenv)"' >> ~/.zprofile
eval "$(/opt/homebrew/bin/brew shellenv)"
mkdir -p .local/bin
echo 'export PATH="$HOME/.local/bin:$PATH"' >> ~/.zprofile
export PATH="$HOME/.local/bin:$PATH"
echo 'export PATH="/Applications/Sublime Text.app/Contents/SharedSupport/bin:$PATH"' >> ~/.zprofile
export PATH="/Applications/Sublime Text.app/Contents/SharedSupport/bin:$PATH"
brew install starship
echo 'eval "$(starship init zsh)"' >> ~/.zshrc
mkdir -p ~/.config && touch ~/.config/starship.toml
subl .config/starship.toml
brew install php
brew services start php
brew install wget
wget https://raw.githubusercontent.com/composer/getcomposer.org/76a7060ccb93902cd7576b67264ad91c8a2700e2/web/installer -O - -q | php -- --quiet
mv composer.phar .local/bin/composer
echo 'export PATH="$HOME/.composer/vendor/bin:$PATH"' >> ~/.zprofile
export PATH="$HOME/.composer/vendor/bin:$PATH"
composer global require laravel/valet
valet install
valet trust
mkdir Sites
cd Sites
valet park
cd ~
brew install mysql@5.7
echo 'export PATH="/opt/homebrew/opt/mysql@5.7/bin:$PATH"' >> ~/.zprofile
export PATH="/opt/homebrew/opt/mysql@5.7/bin:$PATH"
brew services start mysql@5.7
mysql_secure_installation
brew install redis
brew services start redis
pecl install redis
brew tap elastic/tap
brew install elastic/tap/elasticsearch-full
brew services start elastic/tap/elasticsearch-full
brew install mailhog
brew services start mailhog
ssh-keygen -t ed25519 -C "sander@tutanota.de"
eval "$(ssh-agent -s)"
ssh-add -K ~/.ssh/github
pbcopy < ~/.ssh/github.pub
brew install gnupg
brew install pinentry-mac
gpg --full-generate-key
echo 'export GPG_TTY=$(tty)' >> ~/.zshrc
echo 'pinentry-program /opt/homebrew/bin/pinentry-mac' >> ~/.gnupg/gpg-agent.conf
git config --global commit.gpgsign true
git config --global user.email "sander@tutanota.de"
git config --global user.name "Sander de Vos"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment