mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-04-23 10:28:23 +02:00
Update my-profile.ps1
This commit is contained in:
parent
a13800df86
commit
5cb182921c
@ -3,10 +3,17 @@
|
|||||||
#
|
#
|
||||||
# NOTE: simply comment/uncomment/adapt the following lines:
|
# 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
|
set-alias -name lsf -value get-childitem # lsf means list directory formatted
|
||||||
|
Loading…
Reference in New Issue
Block a user