Skip to content

teamsnelgrove/dotfiles

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dotfiles

My dotfiles

Bare your sole

I'm using the bare git repository methodology here for managing files. You can find the OG Hacker News thread here.

TLDR; you split the git directory from the working directory.

Set up an alias in ~/.zshrc

alias dotfiles='/usr/bin/git --git-dir=$HOME/.dotfiles/ --work-tree=$HOME'

Clone the repo with --bare and then checkout the master branch.

git clone --bare [email protected]:teamsnelgrove/dotfiles.git $HOME/.dotfiles
dotfiles checkout master

We don't wanna see all untracked files every time we do git status.

dotfiles config --local status.showUntrackedFiles no

From here we use the alias as we normally would use git. Just need to be careful not to add untracked files by accident or forget to include them.

Releases

No releases published

Packages

No packages published

Languages