These are managed with git, using tips found here
Note: This is a mirror, and may not always be up-to-date. Consider checking out sourcehut
- To install these, make an alias and the following git ignore so that cloning
goes well:
alias config='/usr/bin/git --git-dir=$HOME/.dotfiles/ --work-tree=$HOME' && \ echo ".dotfiles" >> .gitignore
- Then clone this thing:
git clone --bare [email protected]:~trevdev/dotfiles $HOME/.dotfiles
- Move conflicting/existing files
mkdir -p .config-backup && \ config checkout 2>&1 | egrep "\s+\." | awk {'print $1'} | \ xargs -I{} mv {} .config-backup/{}
- Then checkout the config && ignore untracked files
config checkout && config config --local status.showUntrackedFiles no
- Don't forget to initialize submodules and source the updated shell env
config submodule update --init --recursive source .bashrc