blob: d328d494941ea76a10b7798d423c3d21740207e8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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 "⮞ "
}
|