Skip to content

Latest commit

 

History

History
44 lines (28 loc) · 1.15 KB

README.md

File metadata and controls

44 lines (28 loc) · 1.15 KB

Installation

This repository contains my workstation configuration and can be restored using the setup below.

1. Clone this repository to $HOME/dotfiles

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

2. Install homebrew and packages

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/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/Brewfile

3. Decrypt secrets

The de/encryption requires the unlock key.

# 1password
op document get gitcrypt --force | config crypt unlock -

# key file
config crypt unlock gitcrypt.key

4. Restart shell (zsh)

Enviroment should be ready to be used after restarting the shell (zsh).