Clone repo into new hidden directory:
git clone https://github.com/clemenspeters/dotfiles.git ~/.dotfiles
Create symlinks in the Home directory to the real files in the repo:
ln -s ~/.dotfiles/.zshrc ~/.zshrc
ln -s ~/.dotfiles/.zshenv ~/.zshenv
ln -s ~/.dotfiles/.gitconfig ~/.gitconfig
You can use .zshenv
for values you don't want to commit since it's changes are ignored (using git update-index --skip-worktree .zshenv
).
If you want to commit changes to that file use git update-index --no-skip-worktree .zshenv
and to see all skipped files use git ls-files -v . | grep ^S
.
For vscode:
ln -f -s ~/.dotfiles/.vscode/settings.json ~/Library/Application\ Support/Code/User/settings.json
ln -f -s ~/.dotfiles/.vscode/keybindings.json ~/Library/Application\ Support/Code/User/keybindings.json
Install Homebrew, followed by the software listed in the Brewfile:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
brew doctor
brew bundle --file ~/.dotfiles/Brewfile
# ...or move to the directory first.
cd ~/.dotfiles && brew bundle
To create your own Brewfile run:
brew bundle dump --describe
To update your Brewfile run:
brew bundle dump --describe --force
Install Oh My Zsh running:
ZSH="$HOME/.dotfiles/.oh-my-zsh" && wget https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh
sh install.sh
defaults write NSGlobalDomain AppleShowAllExtensions -bool true
Show hidden files and folders in finder
defaults write com.apple.Finder AppleShowAllFiles true && \
killall Finder
ssh-keygen -t rsa
gh auth login
gcloud auth login
Authenticate GCR. See: https://cloud.google.com/container-registry/docs/advanced-authentication#gcloud-helper
gcloud auth configure-docker