Skip to content

Commit faf4e36

Browse files
authored
Merge pull request #12 from gitkass/kass/chezmoi-cleanup
feat: Track .gitconfig and clean up readme
2 parents dc4f5c0 + 66b98df commit faf4e36

7 files changed

Lines changed: 60 additions & 5 deletions

File tree

.chezmoiroot

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
dotfiles

README.md

Lines changed: 18 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# gitkass/dotfiles/README.md
22

3+
<!-- git@github.com:gitkass/dotfiles.git -->
4+
<!-- https://github.com/gitkass/dotfiles/blob/main/README.md -->
5+
36
This repo exists to make it easy to [call chezmoi](https://www.chezmoi.io/reference/commands/init/).
47

58
<!-- markdownlint-disable MD013 -->
@@ -10,8 +13,8 @@ This repo exists to make it easy to [call chezmoi](https://www.chezmoi.io/refere
1013
<!-- `chezmoi init --apply "${GITHUB_TRIGGERING_ACTOR}` -->
1114

1215
<!-- markdownlint-enable MD013 -->
13-
> [!TIP]
14-
> Quickstart
16+
17+
## Quickstart
1518

1619
```
1720
curl -fsSL https://tailscale.com/install.sh | sh
@@ -25,12 +28,22 @@ sh -c "$(curl -fsLS get.chezmoi.io)" -- init --apply gitkass
2528
chezmoi --interactive init gitkass
2629
```
2730

28-
---
2931

30-
TODO
32+
Or install via nix:
33+
34+
```
35+
nix profile install nixpkgs#chezmoi
36+
```
3137

32-
- [ ] todo Add delight to the experience when all tasks are complete :tada:
38+
## Chezmoi notes
3339

40+
- [chezmoi concepts](https://www.chezmoi.io/reference/concepts/)
41+
- The destination directory is the directory that chezmoi manages, usually your home directory, `~`.
42+
- A target is a file, directory, or symlink in the destination directory.
43+
- The source directory is where chezmoi stores the source state. By default it is `~/.local/share/chezmoi`
44+
- 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)
45+
- Confirm with `cat ~/.local/share/chezmoi/.chezmoiroot`
46+
- [quick-start](https://www.chezmoi.io/quick-start/)
3447

3548
## Markdown Snippits
3649

dotfiles/.chezmoiignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
README.md

dotfiles/README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# gitkass/dotfiles/dotfiles/README.md
2+
3+
<!-- https://github.com/gitkass/dotfiles/dotfiles/blob/main/README.md -->
4+
5+
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.

dotfiles/dot_gitconfig

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
[user]
2+
email = 28125260-gitkass@users.noreply.gitlab.com
3+
name = kass
4+
5+
[gitlab]
6+
user = gitkass
7+
8+
[github]
9+
user = gitkass
10+
11+
[includeIf "gitdir:~/devgl/"]
12+
path = ~/.gitconfig.gitlab
13+
14+
[includeIf "gitdir:~/devgh/"]
15+
path = ~/.gitconfig.github
16+
17+
[includeIf "gitdir:~/hub/"]
18+
path = ~/.gitconfig.github
19+
20+
[push]
21+
autoSetupRemote = true

dotfiles/dot_gitconfig.github

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
[user]
2+
name = gitkass
3+
email = 190964064+gitkass@users.noreply.github.com
4+
5+
[github]
6+
user = gitkass
7+

dotfiles/dot_gitconfig.gitlab

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
[user]
2+
email = 28125260-gitkass@users.noreply.gitlab.com
3+
name = gitkass
4+
5+
[gitlab]
6+
user = gitkass
7+

0 commit comments

Comments
 (0)