Skip to content

Instantly share code, notes, and snippets.

@sebnilsson
Last active August 29, 2015 14:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sebnilsson/6bf494e33259b8ec3250 to your computer and use it in GitHub Desktop.
Save sebnilsson/6bf494e33259b8ec3250 to your computer and use it in GitHub Desktop.
Setup PowerShell Profile-file
# Set default path for PowerShell
set-location c:
# Shorten Git-command from "git" to "g"
set-alias g git
# 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