Permalink
Browse files

Update colors on powershell prompt

  • Loading branch information...
tomasr committed Apr 20, 2014
1 parent 40ac9e4 commit 54afed532d0745b6fb50939b8a595fd690c542f5
Showing with 4 additions and 5 deletions.
  1. +4 −5 .profile.ps1
View
@@ -66,14 +66,13 @@ function get-adminuser() {
function prompt {
# our theme
$cdelim = [ConsoleColor]::DarkCyan
if ( get-adminuser ) {
$chost = [ConsoleColor]::Magenta
} else {
$chost = [ConsoleColor]::Green
}
$chost = [ConsoleColor]::Green
$cpref = [ConsoleColor]::Cyan
$cloc = [ConsoleColor]::DarkYellow
if ( get-adminuser ) {
$cpref = [ConsoleColor]::Yellow
}
write-host "$($env:COMPUTERNAME.ToLower())" -n -f $chost
write-host ' | ' -n -f $cdelim
write-host (shorten-path (pwd).Path) -n -f $cloc

0 comments on commit 54afed5

Please sign in to comment.