Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
John Doe committed Aug 7, 2024
1 parent 71aa929 commit aa64af3
Show file tree
Hide file tree
Showing 6 changed files with 39 additions and 10 deletions.
3 changes: 3 additions & 0 deletions .devcontainer/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# dotfiles Development and Testing

This Dev Container is intended to be used for easy development and testing of the dotfiles.
29 changes: 24 additions & 5 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,25 @@
"userUid": "automatic",
"userGid": "automatic"
},
"ghcr.io/devcontainers/features/git:1": {},
"ghcr.io/devcontainers/features/github-cli:1": {
"version": "latest"
},
"ghcr.io/jpawlowski/devcontainer-features/cascadia-code:1": {
"version": "latest",
"installFontconfig": true,
"installStaticTTF": true,
"installStaticOTF": false,
"installStaticWOFF2": false,
"installVariableTTF": false,
"installVariableWOFF2": false
},
"ghcr.io/jpawlowski/devcontainer-features/powershell-extended:2": {
"setUserDefaultShell": true
}
},
"ghcr.io/devcontainers-contrib/features/shfmt:1": {}
},
"postCreateCommand": "./install.sh",
"postCreateCommand": "./install.sh", // Immediate local testing of the dotfiles directly
"customizations": {
"vscode": {
"extensions": [
Expand All @@ -33,17 +47,22 @@
"lizebang.bash-extension-pack",
"DavidAnson.vscode-markdownlint",
"ms-vscode-remote.remote-containers",
"vscode-icons-team.vscode-icons",
"yzhang.markdown-all-in-one"
],
"settings": {
"editor.fontFamily": "'Cascadia Code', Menlo, Monaco, Consolas, 'Courier New', monospace",
"editor.fontLigatures": true,
"terminal.integrated.defaultProfile.linux": "pwsh",
"terminal.integrated.fontFamily": "'Cascadia Code', Menlo, Monaco, Consolas, 'Courier New', monospace",
"terminal.integrated.fontSize": 13
"terminal.integrated.fontFamily": "'Cascadia Mono NF', Menlo, Monaco, Consolas, 'Courier New', monospace",
"terminal.integrated.fontSize": 15
}
}
},
"remoteUser": "vscode",
"containerEnv": {
"POSH_THEME_NAME": "powerlevel10k_modern"
"POSH_THEME_NAME": "powerlevel10k_modern",
"GIT_COMMITTER_NAME": "John Doe",
"GIT_COMMITTER_EMAIL": "[email protected]"
}
}
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,13 @@ for Microsoft 365, which can be found here:
## Use Your Own Dotfiles

You may clone this repository to make adjustments for your own experience.

If you do so, change the `dotfiles.repository` in your VS Code settings. Look for them in the
`.devcontainer/devcontainer.json` file in the section `customizations.vscode.settings`.

Note that when using GitHub Codespaces, you will also need to change the `repository` value in the feature section for the
`ghcr.io/jpawlowski/devcontainer-features/codespace-dotfiles` feature.

## Daily Operations

To handle your own dotfiles with Chezmoi, we recommend to read the [Daily Operations user guide](https://www.chezmoi.io/user-guide/daily-operations/).
Expand Down
9 changes: 8 additions & 1 deletion home/.chezmoi.yaml.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -3,21 +3,28 @@

{{- /* Initializes the name variable with a default value */ -}}
{{- $name := "Your Name" -}}
{{- $gitCommitterName := env "GIT_COMMITTER_NAME" -}}
{{- /* If name was previously set, reuses it */ -}}
{{- if hasKey . "name" -}}
{{- $name = .name -}}
{{- /* Otherwise, if GIT_COMMITTER_NAME is set */ -}}
{{- else if and (ne $gitCommitterName nil) (ne $gitCommitterName "") -}}
{{- $name = $gitCommitterName -}}
{{- /* Otherwise, if running interactively, prompts for a name */ -}}
{{- else if $interactive -}}
{{- writeToStdout "\n\n Terminal dotfile Setup\n" -}}
{{- writeToStdout "--------------------------------------------------------------------------------\n\n" -}}
{{- writeToStdout "ℹ️ Answer the following questions so their data can be integrated to your dotfiles afterwards:\n\n" -}}
{{- writeToStdout "ℹ️ Answer the following questions so their data can be integrated to your dotfiles afterwards:\n\n" -}}
{{- $name = promptString "Your full name" $name -}}
{{- end -}}

{{- /* Does the same for the email */ -}}
{{- $email := "[email protected]" -}}
{{- $gitCommitterEmail := env "GIT_COMMITTER_EMAIL" -}}
{{- if hasKey . "email" -}}
{{- $email = .email -}}
{{- else if and (ne $gitCommitterEmail nil) (ne $gitCommitterEmail "") -}}
{{- $email = $gitCommitterEmail -}}
{{- else if $interactive -}}
{{- $email = promptString "Your email address" $email -}}
{{- end -}}
Expand Down
2 changes: 0 additions & 2 deletions home/dot_config/Code/User/extensions.json

This file was deleted.

2 changes: 0 additions & 2 deletions home/dot_config/Code/User/settings.json

This file was deleted.

0 comments on commit aa64af3

Please sign in to comment.