Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .chezmoiroot
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
dotfiles
23 changes: 18 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# gitkass/dotfiles/README.md

<!-- git@github.com:gitkass/dotfiles.git -->
<!-- https://github.com/gitkass/dotfiles/blob/main/README.md -->

This repo exists to make it easy to [call chezmoi](https://www.chezmoi.io/reference/commands/init/).

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

<!-- markdownlint-enable MD013 -->
> [!TIP]
> Quickstart

## Quickstart

```
curl -fsSL https://tailscale.com/install.sh | sh
Expand All @@ -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

Expand Down
1 change: 1 addition & 0 deletions dotfiles/.chezmoiignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
README.md
5 changes: 5 additions & 0 deletions dotfiles/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# gitkass/dotfiles/dotfiles/README.md

<!-- https://github.com/gitkass/dotfiles/dotfiles/blob/main/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.
21 changes: 21 additions & 0 deletions dotfiles/dot_gitconfig
Original file line number Diff line number Diff line change
@@ -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
7 changes: 7 additions & 0 deletions dotfiles/dot_gitconfig.github
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
[user]
name = gitkass
email = 190964064+gitkass@users.noreply.github.com

[github]
user = gitkass

7 changes: 7 additions & 0 deletions dotfiles/dot_gitconfig.gitlab
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
[user]
email = 28125260-gitkass@users.noreply.gitlab.com
name = gitkass

[gitlab]
user = gitkass