mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-03-25 13:36:39 +01:00
Updated my-profile.ps1
This commit is contained in:
parent
69bb7d8a3d
commit
fb0c4e8783
@ -1,16 +1,16 @@
|
||||
# MY POWERSHELL PROFILE (defines the look & feel of PowerShell)
|
||||
# MY POWERSHELL PROFILE - it defines the look & feel of PowerShell.
|
||||
|
||||
# WINDOW TITLE
|
||||
if ($IsLinux) { $username = $(whoami) } else { $username = $env:USERNAME }
|
||||
$host.ui.RawUI.WindowTitle = "$username @ $(hostname)"
|
||||
|
||||
# GREETING
|
||||
Write-Host "👋 Hi $username @ $(hostname) - type 'hlp' for help." -foregroundColor green
|
||||
Write-Host "👋 Welcome $username to $(hostname) - type 'hlp' for help." -foregroundColor green
|
||||
|
||||
# COMMAND PROMPT
|
||||
# PROMPT
|
||||
function prompt { Write-Host "`n➤ " -noNewline -foregroundColor yellow; return " " }
|
||||
|
||||
# ALIAS NAMES
|
||||
# ALIASES
|
||||
del alias:pwd -force -errorAction SilentlyContinue
|
||||
set-alias -name hlp -value write-help.ps1
|
||||
set-alias -name pwd -value list-workdir.ps1 # pwd = print working directory
|
||||
|
Loading…
Reference in New Issue
Block a user