Copy this command into your elevated PowerShell instance and run it to download this repo and start the installation:
Set-ExecutionPolicy RemoteSigned; `
New-Item -Path "$HOME\dev" -Type Directory; `
Invoke-WebRequest "https://github.com/nidzov/windows-dotfiles/archive/master.zip" `
-OutFile "$HOME\Downloads\windows-dotfiles.zip"; `
Get-ChildItem "$HOME\Downloads\" -Filter *.zip | Expand-Archive -DestinationPath "$HOME\dev" -Force; `
Rename-Item -NewName "windows-dotfiles" -Path "$HOME\dev\windows-dotfiles-master"; `
. "$HOME\dev\windows-dotfiles\Bootstrap.ps1"
-
Set-ExecutionPolicy RemoteSigned
Allows execution of PowerShell scripts. Is needed for further execution and installation.
-
New-Item -Path "$HOME\dev" -Type Directory
Create a dev directory in the home directory for our dotfiles to be stored. The directory name can be changed, but all occurances of the directory name have to be changed in this project.
-
Invoke-WebRequest "https://github.com/nidzov/windows-dotfiles/archive/master.zip" -OutFile "$HOME\Downloads\windows-dotfiles.zip"
Download the repository as a zip into the Downloads directory.
-
Get-ChildItem "$HOME\Downloads\" -Filter *.zip | Expand-Archive -DestinationPath "$HOME\dev" -Force
Unzip to the dev directory.
-
Rename-Item -NewName "windows-dotfiles" -Path "$HOME\dev\windows-dotfiles-master"
Rename the unzipped folder so branch name is not in the name.
-
& "$HOME\dev\windows-dotfiles\Bootstrap.ps1"
Start the installation.