Personal macOS setup, use at your own risk!
Get your apps from the App Store.
# ZSH as default shell
chsh -s /bin/zsh $USER
# Homebrew
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
# Setup
export SETUP="$HOME/.setup"
git clone https://github.com/lehroj/setup.git $SETUP
source $SETUP/scripts/my.zsh
# Install libs & apps
my install
# or separately
my install --brew
my install --vscode
# I suggest you check each step went correctly.
# SSH key
ssh-keygen -t ed25519 -C YOUR_EMAIL
cat $HOME/.ssh/YOUR_KEY.pub | pbcopy
# Paste it on GitHub/GitLab/Bitbucket...
# GPG key
gpg --full-generate-key
gpg --list-secret-keys --keyid-format LONG
gpg --armor --export GPG_KEY_ID | pbcopy
# Paste it on GitHub/GitLab/Bitbucket...
# Add this to your ~/.gnupg/gpg-agent.conf
# pinentry-program /opt/homebrew/bin/pinentry-mac
# Restart GPG agent
gpgconf --kill gpg-agent
gpgconf --launch gpg-agent
# Create your .git_perso in $SETUP/dotfiles/git/.git_perso
# For example :
[user]
name = XXX
email = XXX
signinkey = GPG_KEY_ID
# Symlink configurations
my config
# or separately
my config --zsh
my config --git
my config --term
my config --vscode
# I suggest you check each step went correctly.
# ZSH configuration
. $HOME/.zshrc
# Shell reload
exec $SHELL -l
# Homebrew
brew update
brew upgrade --formulae
brew upgrade --casks # (--greedy if you want to force updates)
brew doctor
brew cleanup -s
brew cleanup --prune=all
rm -rf "$(brew --cache)"
# Backup
my backup
# or separately
my backup --brew
my backup --vscode
# I suggest you check each step went correctly.
# Antidote
antidote update
Something doesn't work as expected ?
Please open an issue here.
You want to suggest something ?
Fork it, do your stuff and open a PR !
The project is available as open source under the terms of the MIT license.
Inspired by GitHub ❤ ~/.