Improved my-profile.ps1

This commit is contained in:
Markus Fleschutz 2021-04-22 17:46:40 +02:00
parent b24f7f9b5e
commit d01aa17c1f

View File

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