- Install chezmoi somehow
-
Create a local bin directory
mkdir -p "${home}\bin"
-
Install the following pre-requisite packages
-
Download the latest release of chezmoi and put the binary in the directory listed above.
-
Ensure gvim is installed and is included in the path. You can get this in your powershell path via
$vim_path="C:\Program Files (x86)\vim\vim81\" # Temporary $env:Path += ";${vim_path}" # Permanent [Environment]::SetEnvironmentVariable( "Path", [Environment]::GetEnvironmentVariable("Path", [EnvironmentVariableTarget]::User) + ";${vim_path}", [EnvironmentVariableTarget]::User)
-
Permanently set the
EDITOR
user environment variable tovim.exe
.$vim="${vim_path}\vim.exe" [Environment]::SetEnvironmentVariable( "EDITOR", "${vim}", [EnvironmentVariableTarget]::User)
-
Create a chezmoi config file
mkdir -p "${home}\.config\chezmoi\" vim "${home}\.config\chezmoi\chezmoi.yml"
-
Add an entry similar to the following
--- merge.command: 'C:\Program Files (x86)\Vim\vim81\diff.exe'
-
Close and reopen powershell (it doesn't update the environment variables)
It might be helpful to have your ssh keys managed via ssh-agent. To do this, from an administrator powershell:
# Enable the service & have it autostart. It might be disabled by default
Set-Service ssh-agent -StartupType Automatic
# Start the service
Start-Service ssh-agent
chezmoi init --apply https://github.com/pdemonaco/dotfiles.git
.\bin\chezmoi.exe init --apply https://github.com/pdemonaco/dotfiles.git