2021-03-15 16:05:50 +01:00
|
|
|
# my-profile.ps1 - Your Personal PowerShell Profile
|
|
|
|
# -------------------------------------------------
|
|
|
|
#
|
|
|
|
# NOTE: simply comment/uncomment/adapt the following lines:
|
2021-02-27 11:19:57 +01:00
|
|
|
|
2021-03-15 16:21:59 +01:00
|
|
|
# function prompt {$null}
|
|
|
|
# resulting prompt is: PS>
|
2021-02-25 11:57:02 +01:00
|
|
|
|
2021-03-15 16:21:59 +01:00
|
|
|
# function prompt { "$ " }
|
|
|
|
# resultinng prompt is: $
|
2021-02-25 11:57:02 +01:00
|
|
|
|
2021-03-15 16:21:59 +01:00
|
|
|
function prompt {
|
|
|
|
$host.ui.RawUI.WindowTitle = "$(whoami)@$(hostname)"
|
|
|
|
write-host -foregroundColor blue -noNewLine "$(Get-Location)"
|
|
|
|
return "> "
|
|
|
|
}
|
|
|
|
# resulting prompt is: C:\>
|
2021-02-27 11:19:57 +01:00
|
|
|
|
2021-03-15 16:05:50 +01:00
|
|
|
set-alias -name lsf -value get-childitem # lsf means list directory formatted
|