CURRENT PROJECTS
loading
su
function (svn stat and svn up):
function ss () { $c = @{ "A"="Magenta"; "D"="Red"; "C"="Yellow"; "G"="Blue"; "M"="Cyan"; "U"="Green"; "?"="DarkGray"; "!"="DarkRed" } foreach ( $svno in svn stat ) { if ( $c.ContainsKey($svno.ToString().SubString(0,1).ToUpper()) ) { write-host $svno -Fore $c.Get_Item($svno.ToString().SubString(0,1).ToUpper()).ToString() } else { write-host $svno } } }Download: svn.stat.color.function
function su () { $c = @{ "A"="Magenta"; "D"="Red"; "U"="Green"; "C"="Yellow"; "G"="Blue"; } foreach ( $svno in svn up ) { if ( $c.ContainsKey($svno.ToString().SubString(0,1).ToUpper()) ) { write-host $svno -Fore $c.Get_Item($svno.ToString().SubString(0,1).ToUpper()).ToString() } else { write-host $svno } } }Download: svn.up.color.function
notepad $Profile, add the function, save the file, done.
get-executionpolicycommand. I run in unrestricted mode via the
set-executionpolicy unrestrictedcommand.