summaryrefslogtreecommitdiffstats
path: root/README.md
blob: 704e7d26b94c2afb7b67fb68eb6ea86c604c36a2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# Dotfiles

Using bare git repo method

https://wiki.archlinux.org/title/Dotfiles

## How to use

In fish, use abbreviation `dotfiles` to manipulate repo.

Setup dotfiles with this command:
```sh
git clone --bare [email protected]:nxblnd/dotfiles.git $HOME/.config/dotfiles && \
git --git-dir="$HOME/.config/dotfiles" --work-tree="$HOME" config --local status.showUntrackedFiles no && \
git --git-dir="$HOME/.config/dotfiles" --work-tree="$HOME" sparse-checkout set --no-cone '/*' '!README.md' && \
git --git-dir="$HOME/.config/dotfiles" --work-tree="$HOME" checkout
```