summaryrefslogtreecommitdiff
path: root/cfg/powershell_prompt.ps1
diff options
context:
space:
mode:
authorjstmax! <maxwasmailed@proton.me>2025-11-03 23:37:33 +0100
committerGitHub <noreply@github.com>2025-11-03 23:37:33 +0100
commit55b5c5e6b545132b685fb439a7d9b33fbebb074e (patch)
treec13fc62358c02ca93416f059574119919d3e61c0 /cfg/powershell_prompt.ps1
parent831dde51fe075e7a0ae679cd0fe65b2c8c5378b8 (diff)
remade my fish prompt (kinda) in powershell because i can
Diffstat (limited to 'cfg/powershell_prompt.ps1')
-rw-r--r--cfg/powershell_prompt.ps119
1 files changed, 19 insertions, 0 deletions
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 "⮞ "
+}