Project Requirements Documents - Google Docs reference
Development references
Validate templates compileReduce template useGet-ChildItem -Path . -Filter *.ps1.tmpl -Recurse | % {$_.FullName}- Validate code could work in theory - linter etc for pwsh? bash?
- setup powershell pester5 tests
- automated tests with vm?
- better vagrant setup?
TODO read about chezmoi Special files and directories
test again and report bug related to vscode typing issue when editor is specified on toml
reference examples:
https://github.com/mimikun/dotfiles/tree/master
https://github.com/SeeminglyScience/dotfiles/tree/main
Opening terminal, fetching updates?
Applying updates from local
chezmoi init --applyEditing profile
eds # only edit template files
chezmoi re-add # updates everything but templatesEditing general tracked dotfiles? - TODO
Listing variables
chezmoi data$ENV:SYSTEM_NAME = ""
$GITHUB_USERNAME = "YoraiLevi"
irm https://raw.githubusercontent.com/YoraiLevi/dotfiles/master/Install.ps1 | iex$ENV:SYSTEM_NAME = "TP412FAC"
$ENV:SYSTEM_NAME = "VirtualMachine"Re-setup an existing system - Resolve conflicts/erros
- with new machine name settings?
- with existing machine name?
Remove from system?
chezmoi state delete-bucket --bucket=entryState; chezmoi state delete-bucket --bucket=scriptState; chezmoi init; chezmoi applyDebugging templates
cat template.tmpl | chezmoi execute-template $_Profiling pwsh profile performance
This doesn't work well:
pwsh.exe -NoProfile -command 'Measure-Script -Top 10 $profile.CurrentUserAllHosts'Using the custom .chezmoilib folder with pwsh and chezmoi
Import-Module (Join-Path $ENV:CHEZMOI_SOURCE_DIR .chezmoilib\DesktopIniAttributes.psm1)
Get-ChildItem -Path $ENV:CHEZMOI_SOURCE_DIR -Filter desktop.ini -Recurse | ForEach-Object {
Remove-DesktopIniAttributes $_.FullName -ErrorAction Continue
}