From 715ba5af34dc854b77b1781d69bf0b02e58cb7e8 Mon Sep 17 00:00:00 2001 From: "Azalea @ T450 Windows" Date: Thu, 13 Jan 2022 10:32:23 +0800 Subject: [PATCH] [O] Dynamic hostname --- powershell.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/powershell.ps1 b/powershell.ps1 index d024d44..25b59c2 100644 --- a/powershell.ps1 +++ b/powershell.ps1 @@ -49,7 +49,7 @@ function color($tmp) { function prompt { color ("&n" + - "&5$(get-date -UFormat "%a %m-%d %H:%M") &1Kevin-PC &eAzalea &r$(pwdd)&n" + + "&5$(get-date -UFormat "%a %m-%d %H:%M") &1$($env:computername) &eAzalea &r$(pwdd)&n" + "> ") }