Last active
October 13, 2016 18:35
-
-
Save jplindgren/45a867cc4223ed5df1afa5db7ea2d4d7 to your computer and use it in GitHub Desktop.
Automatically download and create powershell profile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
###################################################### | |
# 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