- If you want to use any one or few of my configuration, you can download them by opening the files and downloading them individually.
- If you want to use all my configurations, you can download all files using the download button at the top. Use
.tar,.tar.gzor.tar.bz2if you are on Linux or Mac and.zipif you are on Windows systems.
Note: Most config files are for Linux and Unix only.
This was inspired by Greg Owen's post.
To download and use the dotfiles, follow the steps below.
- Clone the repo into you system as a bare repository. You will also need a non-bare repository for the dotfiles.
git clone --separate-git-dir=$HOME/dotfiles git@gitlab.com:mrdonlee/dotfiles.git temp-files - Copy the dotfiles from
temp-filesdirectory to$HOMEdirectory.rsync --recursive --verbose --exclude '.git' temp-files/ $HOME/
- Remove temporary directory.
rm -Rf temp-files
- Create an alias for assigning
$HOMEdirectory as the working tree and$HOME/dotfilesdirectory as the repository.alias dotgit='git --git-dir=$HOME/dotfiles/ --work-tree=$HOME'
- Tell Git not to display untracked files.
dotgit config status.showUntrackedFiles no
- Setup a remote repo to sync dotfiles.
dotgit remote add gitlab git@gitlab.com:mrdonlee/dotfiles.git
- Whenever you want to add a new config file to the repo. Add using the commands below.
dotgit add ~/.gitconfig dotgit commit -m "feat: add git dotfiles" dotgit push