Last active
August 29, 2015 14:02
-
-
Save sebnilsson/6bf494e33259b8ec3250 to your computer and use it in GitHub Desktop.
Setup PowerShell Profile-file
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
# Set default path for PowerShell | |
set-location c: | |
# Shorten Git-command from "git" to "g" | |
set-alias g git |
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
# Check if PowerShell Profile-file exists | |
Test-Path $profile | |
# if "false" create Profile-file | |
New-Item -path $profile -type file –force | |
# Start editing file at | |
# C:\Users\[USERNAME]\Documents\WindowsPowerShell\Microsoft.PowerShell_profile.ps1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment