mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-06-18 02:46:41 +02:00
Improved my-profile.ps1
This commit is contained in:
parent
b24f7f9b5e
commit
d01aa17c1f
@ -9,7 +9,8 @@
|
|||||||
if ($IsLinux) { $Username = $(whoami) } else { $Username = $env:USERNAME }
|
if ($IsLinux) { $Username = $(whoami) } else { $Username = $env:USERNAME }
|
||||||
$Hostname = $(hostname)
|
$Hostname = $(hostname)
|
||||||
$host.ui.RawUI.WindowTitle = "$Username @ $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
|
# My Command Prompt
|
||||||
|
Loading…
x
Reference in New Issue
Block a user