Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/papierkorp/dotfiles_windows
https://github.com/papierkorp/dotfiles_windows
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/papierkorp/dotfiles_windows
- Owner: papierkorp
- Created: 2024-02-04T15:45:16.000Z (11 months ago)
- Default Branch: master
- Last Pushed: 2024-08-29T13:41:43.000Z (4 months ago)
- Last Synced: 2024-08-29T15:10:59.442Z (4 months ago)
- Language: Shell
- Size: 48.8 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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
```