Skip to content

Latest commit

 

History

30 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dotfiles configuration

Following the example provided by StreakyCobra, I'm managing my config using a bare github repo that allows for all tracked files to be version controlled while ignoring untracked files in the $HOME dir.

They key part to all of this is the config alias, make sure to set the alias in .zshrc or .bashrc

git init --bare $HOME/.cfg
alias config='/usr/bin/git --git-dir=$HOME/.cfg/ --work-tree=$HOME'
config config status.showUntrackedFiles no

When copying to a new machine the alias needs to be set again (probably easiest to just add to the .zshrc or .bashrc)

git clone --separate-git-dir=$HOME/.cfg /path/to/repo $HOME/cfg-tmp
rm -r ~/cfg-tmp
alias config='/usr/bin/git --git-dir=$HOME/.cfg/ --work-tree=$HOME'
config config status.showUntrackedFiles no

About

my configuration

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages