Improve my-profile.ps1

This commit is contained in:
Markus Fleschutz 2021-04-25 19:25:00 +02:00
parent 96ff3574c2
commit be825c1787

View File

@ -10,7 +10,7 @@ if ($IsLinux) { $Username = $(whoami) } else { $Username = $env:USERNAME }
$Hostname = $(hostname)
$host.ui.RawUI.WindowTitle = "$Username @ $Hostname"
$Time = (get-date).ToString('t')
"Hi 🧑$Username, welcome to 💻$Hostname at 📂$(Get-Location), it's $Time"
"🧑$Username entered 📂$(Get-Location) at 💻$Hostname, it's $Time"
# My Command Prompt