/PSDotfiles

PowerShell Dotfiles

Primary LanguagePowerShellMIT LicenseMIT

PSDotfiles

This project is archived. It has been merged with dotfiles.

PSDotfiles is a PowerShell module for configuring the user environment. It is inspired by how dotfiles work in POSIX operating systems but adapted for Windows and PowerShell.

Layout

  • conf - Configuration files for utilities like Vim
  • Modules - PowerShell modules

An optional install script is available to provision PSDotfiles.

Requirements

PSDotfiles requires:

  • Windows 10 or Windows 11
  • PowerShell 7.0 or later

Pre-requisites

Enable Developer mode:

Settings -> Privacy & security -> For Developers

Additional requirements:

To run the provided install script:

Set-ExecutionPolicy Bypass -Scope Process; Invoke-WebRequest https://raw.githubusercontent.com/ascarter/PSDotfiles/main/install.ps1 -UseBasicParsing | Invoke-Expression

Alternate Install

If directly executing powershell script is not desired, clone into a location (recommend %USERPROFILE%\.config\PSDotfiles).

git clone git@github.com:ascarter/PSDotfiles.git $env:USERPROFILE\.config\PSDotfiles
cd $env:USERPROFILE\.config\PSDotfiles
.\install.ps1

Update Developer Tools

PSDotfiles is implemented as a PowerShell module. The module should be configured to be enabled in the user profile. A convenience cmdlet Update-DevTools is available to quickly update a useful set of Windows developer tools.

PS> Update-DevTools

Uninstall

Run uninstall PowerShell script to remove links:

cd $env:USERPROFILE\.config\PSDotfiles
.\uninstall.ps1