From a9d47bebfa803e6050fc0a85d8fcff268808aa39 Mon Sep 17 00:00:00 2001 From: Pavel Egorov Date: Tue, 4 Mar 2025 03:33:48 +0300 Subject: Add README --- README.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..704e7d2 --- /dev/null +++ b/README.md @@ -0,0 +1,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 git@github.com: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 +``` -- cgit v1.3