Update my-profile.ps1

This commit is contained in:
Markus Fleschutz 2021-03-15 16:21:59 +01:00
parent a13800df86
commit 5cb182921c

View File

@ -3,10 +3,17 @@
#
# NOTE: simply comment/uncomment/adapt the following lines:
#function prompt {$null} # PS>
# function prompt {$null}
# resulting prompt is: PS>
#function prompt { "$ " } # $
# function prompt { "$ " }
# resultinng prompt is: $
function prompt { write-host -foregroundColor blue -noNewLine "$(Get-Location)"; return "> " } # C:\>
function prompt {
$host.ui.RawUI.WindowTitle = "$(whoami)@$(hostname)"
write-host -foregroundColor blue -noNewLine "$(Get-Location)"
return "> "
}
# resulting prompt is: C:\>
set-alias -name lsf -value get-childitem # lsf means list directory formatted