-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
John Doe
committed
Aug 7, 2024
1 parent
71aa929
commit aa64af3
Showing
6 changed files
with
39 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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": [ | ||
|
@@ -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]" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 -}} | ||
|
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.