From 55b5c5e6b545132b685fb439a7d9b33fbebb074e Mon Sep 17 00:00:00 2001 From: jstmax! Date: Mon, 3 Nov 2025 23:37:33 +0100 Subject: remade my fish prompt (kinda) in powershell because i can --- cfg/powershell_prompt.ps1 | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 cfg/powershell_prompt.ps1 (limited to 'cfg') diff --git a/cfg/powershell_prompt.ps1 b/cfg/powershell_prompt.ps1 new file mode 100644 index 0000000..d328d49 --- /dev/null +++ b/cfg/powershell_prompt.ps1 @@ -0,0 +1,19 @@ +function prompt { + $user = $env:USERNAME + $cwd = (Get-Location).Path + + Write-Host "╭" -ForegroundColor white -NoNewline + Write-Host "(" -ForegroundColor red -NoNewline + Write-Host $user -ForegroundColor white -NoNewline + Write-Host "⮞" -ForegroundColor red -NoNewline + Write-Host "⮞" -ForegroundColor white -NoNewline + Write-Host "⮞" -ForegroundColor red -NoNewline + if ($cwd -eq "C:\Users\$user") { + Write-Host "~" -ForegroundColor white -NoNewline + } else { + Write-Host $cwd -ForegroundColor white -NoNewline + } + Write-Host ")" -ForegroundColor red + Write-Host "╰" -ForegroundColor red -NoNewline + return "⮞ " +} -- cgit v1.3.1