Enable Filevault + Firewall
- Terminal: iTerm2 (brew)
- Shell: ZSH
- Plugins: Zinit
- Shell: Powerlevel10k (https://github.com/romkatv/powerlevel10k)
See .zshrc
.
ln -s $(pwd)/.*(.) ~/
Install brew
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
Backup Brewfile
brew bundle dump
To restore, in the directory containing Brewfile
:
brew bundle
- Global .gitignore
git config --global core.excludesfile "$(PWD)/.global-gitignore"
# Install pyenv and pyenv-virtualenv
brew install pyenv
brew install pyenv-virtualenv
# Add pyenv/pyenv-virtualenv init to .zshrc
echo 'if which pyenv > /dev/null; then eval "$(pyenv init -)"; fi
if which pyenv-virtualenv-init > /dev/null; then eval "$(pyenv virtualenv-init -)"; fi' >> ~/.zshrc
# Install python
pyenv install [version] # e.g. 3.7.10
# Create virtualenv
cd deal-radar
pyenv virtualenv [version] [env_name]-[version] # e.g. 3.7.10 myenv-3.7.10
# Add to .python-version
pyenv local [env_name]-[version] # e.g. myenv-3.7.10
gfortran
now comes packaged with the gcc formula
brew install gcc
To link it, create ~/.R/Makevars
and add the path to the bin:
# M1 brew `/opt/homebrew/` / Intel brew `/usr/local/`
FC = /opt/homebrew/opt/gcc/bin/gfortran
F77 = /opt/homebrew/opt/gcc/bin/gfortran
FLIBS = -L/opt/homebrew/opt/gcc/lib