Skip to content
fsandheiPublic

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Latest commit

 

History

109 Commits

Folders and files

Repository files navigation

Dotfiles

This approach is based off of this Hacker News Post.

Cloning this repository

In order to clone the repository you have to do the following:

git clone --separate-git-dir=<git-dir> /path/to/repo/ <dest>

git-clone will fail if the directory you're cloning to has any of the existing files from before, so make sure you do it to a clean directory, preferably a temporary directory, and then copy over the files to the $HOME directory. Thus, replicating the configuration on a new machine can be done with the following commands:

repo_path="$HOME/.dotfiles"
git clone --separate-git-dir=$repo_path git@github.com:fsandhei/configs.git $HOME/myconf-tmp
cp $HOME/myconf-tmp $HOME
rm -rf $HOME/myconf-tmp
echo "alias config='/usr/bin/git --git-dir $repo_path --work-tree $HOME'" >> ~/.zshrc

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages