From 8a429b18efb5e270548030c2aa82f9376197e409 Mon Sep 17 00:00:00 2001 From: John Doty Date: Sat, 18 May 2013 23:00:25 -0700 Subject: [PATCH] Extraneous PS profile --- _profile.ps1 | 43 ------------------------------------------- 1 file changed, 43 deletions(-) delete mode 100644 _profile.ps1 diff --git a/_profile.ps1 b/_profile.ps1 deleted file mode 100644 index 9630b52..0000000 --- a/_profile.ps1 +++ /dev/null @@ -1,43 +0,0 @@ -# These bits of profile courtesy of http://winterdom.com/ -# -# http://winterdom.com/2008/01/modifyingthehomeinpowershell -# Set the $HOME variable for our use -# and make powershell recognize ~\ as $HOME -# in paths -# -set-variable -name HOME -value (resolve-path $env:Home) -force -(get-psprovider FileSystem).Home = $HOME - -# http://winterdom.com/2008/08/mypowershellprompt -function shorten-path([string] $path) -{ - $loc = $path.Replace($HOME, '~') - # remove prefix for UNC paths - $loc = $loc -replace '^[^:]+::', '' - # make path shorter like tabs in Vim, - # handle paths starting with \\ and . correctly - return ($loc -replace '\\(\.?)([^\\]{3})[^\\]*(?=\\)','\$1$2') -} - -function prompt -{ - # our theme - $cdelim = [ConsoleColor]::DarkCyan - $chost = [ConsoleColor]::Green - $cloc = [ConsoleColor]::Cyan - - write-host "$([char]0x0A7) " -n -f $cloc - write-host ([net.dns]::GetHostName()) -n -f $chost - write-host ' {' -n -f $cdelim - write-host (shorten-path (pwd).Path) -n -f $cloc - write-host '}' -n -f $cdelim - return ' ' -} - -function Get-JDHelp( - [switch] $Full, -[switch] $Detailed - -) -{ -} \ No newline at end of file