From 66b98df3bd4a7d73d86b0598f4fa0821970b3f91 Mon Sep 17 00:00:00 2001 From: kass <28125260-gitkass@users.noreply.gitlab.com> Date: Wed, 11 Feb 2026 00:19:39 -0500 Subject: [PATCH] Track .gitconfig and clean up readme --- .chezmoiroot | 1 + README.md | 23 ++++++++++++++++++----- dotfiles/.chezmoiignore | 1 + dotfiles/README.md | 5 +++++ dotfiles/dot_gitconfig | 21 +++++++++++++++++++++ dotfiles/dot_gitconfig.github | 7 +++++++ dotfiles/dot_gitconfig.gitlab | 7 +++++++ 7 files changed, 60 insertions(+), 5 deletions(-) create mode 100644 .chezmoiroot create mode 100644 dotfiles/.chezmoiignore create mode 100644 dotfiles/README.md create mode 100644 dotfiles/dot_gitconfig create mode 100644 dotfiles/dot_gitconfig.github create mode 100644 dotfiles/dot_gitconfig.gitlab diff --git a/.chezmoiroot b/.chezmoiroot new file mode 100644 index 0000000..25be2eb --- /dev/null +++ b/.chezmoiroot @@ -0,0 +1 @@ +dotfiles diff --git a/README.md b/README.md index ba712f0..1e3a450 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,8 @@ # gitkass/dotfiles/README.md + + + This repo exists to make it easy to [call chezmoi](https://www.chezmoi.io/reference/commands/init/). @@ -10,8 +13,8 @@ This repo exists to make it easy to [call chezmoi](https://www.chezmoi.io/refere -> [!TIP] -> Quickstart + +## Quickstart ``` curl -fsSL https://tailscale.com/install.sh | sh @@ -25,12 +28,22 @@ sh -c "$(curl -fsLS get.chezmoi.io)" -- init --apply gitkass chezmoi --interactive init gitkass ``` ---- -TODO +Or install via nix: + +``` +nix profile install nixpkgs#chezmoi +``` -- [ ] todo Add delight to the experience when all tasks are complete :tada: +## Chezmoi notes +- [chezmoi concepts](https://www.chezmoi.io/reference/concepts/) + - The destination directory is the directory that chezmoi manages, usually your home directory, `~`. + - A target is a file, directory, or symlink in the destination directory. + - The source directory is where chezmoi stores the source state. By default it is `~/.local/share/chezmoi` +- This repo uses a [.chezmoiroot file](https://www.chezmoi.io/reference/special-files/chezmoiroot/) to store `source` files in the `dotfiles` subdirectory. [more info](https://www.chezmoi.io/user-guide/advanced/customize-your-source-directory/#use-a-subdirectory-of-your-dotfiles-repo-as-the-root-of-the-source-state) + - Confirm with `cat ~/.local/share/chezmoi/.chezmoiroot` +- [quick-start](https://www.chezmoi.io/quick-start/) ## Markdown Snippits diff --git a/dotfiles/.chezmoiignore b/dotfiles/.chezmoiignore new file mode 100644 index 0000000..b43bf86 --- /dev/null +++ b/dotfiles/.chezmoiignore @@ -0,0 +1 @@ +README.md diff --git a/dotfiles/README.md b/dotfiles/README.md new file mode 100644 index 0000000..6474b85 --- /dev/null +++ b/dotfiles/README.md @@ -0,0 +1,5 @@ +# gitkass/dotfiles/dotfiles/README.md + + + +This directory is specified by the [.chezmoiroot](https://www.chezmoi.io/reference/special-files/chezmoiroot/) instead of adding the flake / LICENSE / README.md / Taskfile and other stuff in the root directory to the [.chezmoiignore](https://www.chezmoi.io/reference/special-files/chezmoiignore/) file. diff --git a/dotfiles/dot_gitconfig b/dotfiles/dot_gitconfig new file mode 100644 index 0000000..ab97e6d --- /dev/null +++ b/dotfiles/dot_gitconfig @@ -0,0 +1,21 @@ +[user] + email = 28125260-gitkass@users.noreply.gitlab.com + name = kass + +[gitlab] + user = gitkass + +[github] + user = gitkass + +[includeIf "gitdir:~/devgl/"] + path = ~/.gitconfig.gitlab + +[includeIf "gitdir:~/devgh/"] + path = ~/.gitconfig.github + +[includeIf "gitdir:~/hub/"] + path = ~/.gitconfig.github + +[push] + autoSetupRemote = true diff --git a/dotfiles/dot_gitconfig.github b/dotfiles/dot_gitconfig.github new file mode 100644 index 0000000..3e3b800 --- /dev/null +++ b/dotfiles/dot_gitconfig.github @@ -0,0 +1,7 @@ +[user] + name = gitkass + email = 190964064+gitkass@users.noreply.github.com + +[github] + user = gitkass + diff --git a/dotfiles/dot_gitconfig.gitlab b/dotfiles/dot_gitconfig.gitlab new file mode 100644 index 0000000..9da660f --- /dev/null +++ b/dotfiles/dot_gitconfig.gitlab @@ -0,0 +1,7 @@ +[user] + email = 28125260-gitkass@users.noreply.gitlab.com + name = gitkass + +[gitlab] + user = gitkass +