Skip to content

chezmoi based dotfile management for my various environments.

Notifications You must be signed in to change notification settings

pdemonaco/dotfiles

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Prep

Linux / Unix

  1. Install chezmoi somehow

Windows

  1. Create a local bin directory

    mkdir -p "${home}\bin"
  2. Install the following pre-requisite packages

  3. Download the latest release of chezmoi and put the binary in the directory listed above.

  4. 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)
  5. Permanently set the EDITOR user environment variable to vim.exe.

    $vim="${vim_path}\vim.exe"
    [Environment]::SetEnvironmentVariable(
        "EDITOR",
        "${vim}",
        [EnvironmentVariableTarget]::User)
  6. Create a chezmoi config file

    mkdir -p "${home}\.config\chezmoi\"
    vim "${home}\.config\chezmoi\chezmoi.yml"
  7. Add an entry similar to the following

    ---
    merge.command: 'C:\Program Files (x86)\Vim\vim81\diff.exe'
  8. Close and reopen powershell (it doesn't update the environment variables)

SSH Agent Config

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

See Also

Initial Setup

chezmoi init --apply https://github.com/pdemonaco/dotfiles.git
.\bin\chezmoi.exe init --apply https://github.com/pdemonaco/dotfiles.git

About

chezmoi based dotfile management for my various environments.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published