Skip to content

Instantly share code, notes, and snippets.

@jstangroome
Created August 11, 2010 14:58
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 jstangroome/519103 to your computer and use it in GitHub Desktop.
Save jstangroome/519103 to your computer and use it in GitHub Desktop.
Import-PSISEProfile.ps1
if ($psise) {
if (!(test-path $profile)) { new-item $profile -fo -it file }
$e = $psise.CurrentPowerShellTab.Files.Add($profile).Editor
$col = $e.GetLineLength($e.LineCount)+1
$e.Select($e.LineCount,$col,$e.LineCount,$col)
$e.InsertText("`n" + (new-object Net.WebClient).DownloadString(
'http://gist.github.com/raw/518638/3e0beb7a5a6ddc19446d5a6d38c8267794c92eba/Microsoft.PowerShellISE_profile.ps1'
))
} else { throw 'Run this script using the ISE' }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment