Skip to content

Wojonatior/dotfiles

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

67 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dotfiles

Collection of all of my dotfiles and configuration

This backup strategy is collected from here

How To...

Initally Setup

Run the following (I would probably put that alias in an rc)

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

Use

Then treat config as an alias for git, with the directories being relative to ~/

config add .vimrc
config commit -m "added .vimrc

Clone to new machine

Cloning to a non-empty home directly will fail. The following commands provide a solution to that problem by cloning to a temporary directory first and then moving the files.

git clone --separate-git-dir=$HOME/.myconf https://github.com/Wojonatior/dotfiles.git $HOME/myconf-tmp
cp ~/myconf-tmp/.gitmodules ~  # If you use Git submodules
rm -r ~/myconf-tmp/
alias config='/usr/bin/git --git-dir=$HOME/.myconf/ --work-tree=$HOME'

About

Collection of all of my dotfiles

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published