Skip to content

Instantly share code, notes, and snippets.

@tuespetre
Last active November 10, 2016 13:25
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tuespetre/37b3afd9f43d0c2d6a30 to your computer and use it in GitHub Desktop.
Save tuespetre/37b3afd9f43d0c2d6a30 to your computer and use it in GitHub Desktop.
Setting up powershell properly :P
  1. Install Ps-Get:

(new-object Net.WebClient).DownloadString("http://psget.net/GetPsGet.ps1") | iex

  1. Install posh-git:

Install-Module posh-git

  1. Edit or create %userprofile%/Documents/WindowsPowerShell/Microsoft.PowerShell_profile.ps1:
$console = $host.UI.RawUI
$console.BackgroundColor = "Black"

# Load posh-git example profile
. 'C:\Users\grayd\Documents\WindowsPowerShell\Modules\posh-git\profile.example.ps1'

Clear-Host
  1. Change some of the colors in C:\Users\grayd\Documents\WindowsPowerShell\Modules\posh-git\GitPrompt.ps1 from the light ones to the dark ones, to taste
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment