Skip to content

WhoisDavid/dotfiles

Repository files navigation

Environment setup

Security

Enable Filevault + Firewall

Terminal setup

See .zshrc.

Symlink all dotfiles to HOME dir

ln -s $(pwd)/.*(.) ~/

Brew

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

Extras

  • Global .gitignore
git config --global core.excludesfile "$(PWD)/.global-gitignore"

Python env setup

# 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

R setup: install and link gfortran

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

About

Collection of dotfiles

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published