Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/papierkorp/dotfiles_windows


https://github.com/papierkorp/dotfiles_windows

Last synced: about 1 month ago
JSON representation

Awesome Lists containing this project

README

        

# dotfiles bare git repo

Idea from: https://www.anand-iyer.com/blog/2018/a-simpler-way-to-manage-your-dotfiles/

to be used together with a dotfiles Repo for my WSL

# Initial Setup

```bash
mkdir /mnt/c/Users/Markus/.dotfiles
git init --bare /mnt/c/Users/Markus/.dotfiles
alias dotfw='/usr/bin/git --git-dir=/mnt/c/Users/Markus/.dotfiles --work-tree=/mnt/c/Users/Markus'
dotfw config --local status.showUntrackedFiles no
dotfw remote add origin [email protected]:papierkorp/dotfiles_windows.git
dotfw add ~/.bash_aliases
dotfw push
```

# Usage

```bash
touch .gitconfig .gitconfig_privat
git clone --separate-git-dir=/mnt/c/Users/Markus/.dotfiles [email protected]:papierkorp/dotfiles_windows.git tmpdotfiles
rm .gitconfig*
rsync --recursive --verbose --exclude '.git' tmpdotfiles/ /mnt/c/Users/Markus/
rm -r tmpdotfiles
```