Skip to content

Instantly share code, notes, and snippets.

@jplindgren
Last active October 13, 2016 18:35
Show Gist options
  • Save jplindgren/45a867cc4223ed5df1afa5db7ea2d4d7 to your computer and use it in GitHub Desktop.
Save jplindgren/45a867cc4223ed5df1afa5db7ea2d4d7 to your computer and use it in GitHub Desktop.
Automatically download and create powershell profile
######################################################
# Download custom PowerShell profile file
######################################################
Write-Host "Creating custom $profile for Powershell"
if (!(test-path $profile)) {
New-Item -path $profile -type file -force
}
Add-Content $profile ((new-object net.webclient).DownloadString('https://gist.githubusercontent.com/jplindgren/a3aefc76b1667e4fefa6a47f9974974e/raw/a6bceca451f08e765bd49e137656b1a25f4aa7b1/myprofile.ps1'))
Write-Host
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment