Clone repo into new hidden directory:
git clone https://github.com/clemenspeters/dotfiles.git ~/.dotfilesCreate 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 ~/.gitconfigYou 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.jsonInstall Homebrew, followed by the software listed in the Brewfile:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
brew doctorbrew bundle --file ~/.dotfiles/Brewfile
# ...or move to the directory first.
cd ~/.dotfiles && brew bundleTo create your own Brewfile run:
brew bundle dump --describeTo update your Brewfile run:
brew bundle dump --describe --forceInstall Oh My Zsh running:
ZSH="$HOME/.dotfiles/.oh-my-zsh" && wget https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh
sh install.shdefaults write NSGlobalDomain AppleShowAllExtensions -bool trueShow hidden files and folders in finder
defaults write com.apple.Finder AppleShowAllFiles true && \
killall Finderssh-keygen -t rsagh auth logingcloud auth loginAuthenticate GCR. See: https://cloud.google.com/container-registry/docs/advanced-authentication#gcloud-helper
gcloud auth configure-docker