- Install Apple's Command line tools
xcode-select --install
- Install brew
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
Follow the instructions to add brew to path and then
- Install git with brew
brew install git
- Clone dotfiles repo
HTTPS
git clone https://github.com/MateuszGroth/dotfiles.git ~/.dotfiles
SSH
git clone [email protected]:MateuszGroth/dotfiles.git ~/.dotfiles
- Install brew in case it wasn't installed in the previous steps
bash ./brew/install.sh
Follow the instructions to add brew to path and then
brew bundle --file ~/.dotfiles/brew/Brewfile
- Bootstrap the machine (linking)
bash ./install/bootstrap.sh
- Install oh my zsh
bash ./oh-my-zsh/install.sh
- Install lvim
Make sure you launch nvim first so required plugins are installed
bash ./lvim/install.sh
- setup git ssh connection
cd ~/.ssh && ssh-keygen -t rsa
Create the key as you wish (name, phrase). Add the key to the ssh agent
Put the following code into your ~/.ssh/config file
Host github.com
AddKeysToAgent yes
UseKeychain yes
IdentityFile ~/.ssh/<token name>
Copy the public key. Go to Account > Settings > SSH and GPK Keys, or (link)[https://github.com/settings/keys] Click on New SSH Key Add a title and put the public key into the Key textfield
ln -s ~/.dotfiles/git/.gitconfig ~/.gitconfig
ln -s ~/.dotfiles/git/gitignore ~/.gitignore
ln -s ~/.dotfiles/hyper/.hyper.js ~/.hyper.js
ln -s ~/.dotfiles/zsh/rc.zsh ~/.zshrc
ln -s ~/.dotfiles/lvim/config.lua ~/.config/lvim/config.lua
Put you environment variables into ~/.env.sh
brew bundle dump