Awesome
mba-provisioner
my PC (MacBook Air) provisioner
Prerequisite
-
macOS Catalina ~ (zsh)
-
Allow full access to terminal.app
- System Environment Settings -> Security & Privacy
-
Install Homebrew
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
-
Install Ansible
brew update brew install python ansible
-
Clone this repository
git clone git@github.com:sogaoh/mba-provisioner.git
-
Set
variables.yaml
(If runmake ma
)mackerel_agent_apikey: "<your_key>"
-
Create
/etc/hosts
symbolic linksudo mv /private/etc/hosts /private/etc/hosts.org touch ~/.config/hosts sudo ln -snf ~/.config/hosts /private/etc/hosts
Usage
-
That's all
make
-
Dry run
make test
-
Only packages install/update
make packages
-
etc...
make ma
# Mackerel Agentmake hosts
# Add hostsmake dot
make zsh
make py3
# Update Python3 via pyenv ... not work ...
Note
- Commands
- rebuild zcompdump ->
rm -f ~/.zcompdump; compinit
- clear DNS cache ->
sudo killall -HUP mDNSResponder
- rebuild zcompdump ->
References
- https://github.com/j-un/osx-provisioner
- https://github.com/ucan-lab/dotfiles
- Mac を買ったら必ずやっておきたい初期設定 - Qiita / by @ucan-lab 2020.05.11
- Macの開発環境をzshで良い感じにする
- お前らのターミナルはダサい
- https://github.com/Arc0re/Iceberg-iTerm2
- https://github.com/sorin-ionescu/prezto
- https://github.com/sindresorhus/pure/blob/master/pure.zsh <- https://github.com/sorin-ionescu/prezto/tree/master/modules/prompt/external
- https://github.com/zsh-users/zsh-completions#manual-installation
- Mac の DNS キャッシュ をクリアするコマンド