Skip to content

Instantly share code, notes, and snippets.

@harishrathi
Created September 26, 2018 04:26
Show Gist options
  • Save harishrathi/b50c489ff508b6cba9aaa42597d31e33 to your computer and use it in GitHub Desktop.
Save harishrathi/b50c489ff508b6cba9aaa42597d31e33 to your computer and use it in GitHub Desktop.
$dirName=[System.IO.Path]::GetDirectoryName($profile)
if(!(Test-Path $dirName))
{
Write-Host "creating profile directory: $dirName"
New-Item -ItemType directory -Path $dirName
}
if (!(Test-Path $profile))
{
Write-Host "creating profile file: $profile"
New-Item -ItemType directory -Path $profile
}
Write-Host "install chocolatey"
Set-ExecutionPolicy Bypass -Scope Process -Force; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))
Write-Host "enabling global confirmation"
choco feature enable -n allowGlobalConfirmation
choco install conemu
choco install notepadplusplus
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment