PowerShell/Scripts/my-profile.ps1
2021-04-03 15:24:18 +02:00

25 lines
683 B
PowerShell
Executable File

# My PowerShell Profile
# =====================
# Welcome to 'my-profile.ps1' - this file defines the look&feel of PowerShell.
# Simply comment/uncomment/adapt the following lines.
#
#
# My Command Prompt
# -----------------
# function prompt {$null} # result is: PS>
# function prompt { "$ " } # result is: $
function prompt {
if ($IsLinux) { $Username = $(whoami) } else { $Username = $env:USERNAME }
$host.ui.RawUI.WindowTitle = "$Username @ $(hostname)"
write-host -foregroundColor blue -noNewLine "$(Get-Location)"
return "> "
} # result is: C:\>
# My Alias Names
# --------------
set-alias -name lsf -value get-childitem # lsf means list directory formatted