Last active
August 29, 2015 14:13
-
-
Save CamW/382ca8c4f362ada94f26 to your computer and use it in GitHub Desktop.
Create Powershell profile and fix curl alias issue.
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
#Create a profile if it doesn't already exist | |
New-Item $profile -ItemType File -Force |
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
#Replace file in Documents\WindowsPowerShell with this | |
Set-Location c:\ | |
rm alias:curl | |
Clear-Host |
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
#Test if a profile exists | |
Test-Path $profile |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment