Using dotfiles on Windows - purple4pur/dotfiles GitHub Wiki
Tested on Windows 10
Setup Scoop and Install chezmoi
scoop install chezmoi
Read more: Scoop: Install, Setup and More
Use dotfiles
chezmoi init --apply https://github.com/purple4pur/dotfiles.git # First-time initialization
chezmoi update # Pull latest changes
If you have starship and zoxide installed...
$PROFILE
1. Open PowerShell 5 (default builtin version) and newer PowerShell (7.x) use different PROFILE paths.
notepad.exe $PROFILE
$PROFILE
2. Write/Append following lines to $EDITOR = "goneovim.exe" # Optional: if you have goneovim/neovim/... installed. Default is notepad.
. $env:USERPROFILE\.config\.powershell_setup.ps1
3. Save and restart PowerShell
If you have vim/neovim installed...
cmd /C mklink /J "$env:USERPROFILE\vimfiles" "$env:USERPROFILE\.vim"
cmd /C mklink /J "$env:LOCALAPPDATA\nvim" "$env:USERPROFILE\.config\nvim"
If you have mpv installed...
Assuming that mpv is installed thru scoop,
Remove-Item $env:USERPROFILE\scoop\persist\mpv\portable_config
cmd /C mklink /J "$env:USERPROFILE\scoop\persist\mpv\portable_config" "$env:USERPROFILE\.config\mpv"