summaryrefslogtreecommitdiff
path: root/cfg/powershell_prompt.ps1
diff options
context:
space:
mode:
authorjstmax! <maxwasmailed@proton.me>2025-11-12 19:29:15 +0100
committerjstmax! <maxwasmailed@proton.me>2025-11-12 19:29:15 +0100
commitd18948dc4d996129cea954de1ed9e115b19a8510 (patch)
treec7886e4ee3903a0c78499d982a92afdf6a48b795 /cfg/powershell_prompt.ps1
parentc0aeec251c93a9bec58971e1718e7969b53c94ba (diff)
parentb5351ffde7d6f6bbbb0dbc09bd91757ef951266d (diff)
Merge remote-tracking branch 'refs/remotes/origin/main'
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 "⮞ "
+}