Skip to content

Instantly share code, notes, and snippets.

@andrewrjones
Created January 12, 2012 13:49
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 andrewrjones/1600609 to your computer and use it in GitHub Desktop.
Save andrewrjones/1600609 to your computer and use it in GitHub Desktop.
My PowerShell profile
# Import PowerShell Community Extensions
# Available from http://pscx.codeplex.com/
$pscx = Get-Module -List Pscx
if($m){Import-Module Pscx}
Set-Alias open Invoke-Item
Set-Alias vi gvim # because I forget...
function prompt
{
# set the window title to the path
$host.ui.RawUI.WindowTitle = $(get-location)
# change the colour of the prompt
Write-Host ("PS" + ">") -nonewline -foregroundcolor Gray
# return a String
return " "
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment