Skip to content

YoraiLevi/dotfiles

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

920 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Project Requirements Documents - Google Docs reference

Development references

  1. Validate templates compile Reduce template use Get-ChildItem -Path . -Filter *.ps1.tmpl -Recurse | % {$_.FullName}
  2. Validate code could work in theory - linter etc for pwsh? bash?
  3. setup powershell pester5 tests
  4. automated tests with vm?
  5. 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


Yorai's Dotfiles

Daily use

Opening terminal, fetching updates?


Applying updates from local

chezmoi init --apply

Editing profile

eds # only edit template files
chezmoi re-add # updates everything but templates

Editing general tracked dotfiles? - TODO


Listing variables

chezmoi data

To setup a system

$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?


Development of setup

Debugging all run_ scripts

chezmoi state delete-bucket --bucket=entryState; chezmoi state delete-bucket --bucket=scriptState; chezmoi init; chezmoi apply

Debugging templates

cat template.tmpl | chezmoi execute-template $_

Debugging

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
}

About

dotfiles

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors