aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorclaw0ry <me@claw0ry.net>2025-01-02 14:35:12 +0100
committerclaw0ry <me@claw0ry.net>2025-01-02 14:35:12 +0100
commita7300a04abcf0c1e1fe15696a3395e8ee3d12433 (patch)
treefcad3d1630d3f6d65c2bc2f0c0e97b03c74075ae
parentnvim: remove config (diff)
powershell: fix spacing in custom prompt
-rw-r--r--powershell/Microsoft.PowerShell_profile.ps14
1 files changed, 2 insertions, 2 deletions
diff --git a/powershell/Microsoft.PowerShell_profile.ps1 b/powershell/Microsoft.PowerShell_profile.ps1
index db9ccee..dc824e1 100644
--- a/powershell/Microsoft.PowerShell_profile.ps1
+++ b/powershell/Microsoft.PowerShell_profile.ps1
@@ -24,9 +24,9 @@ if (Get-Command 'oh-my-posh' -ErrorAction 'SilentlyContinue') {
function prompt {
$git_branch = $(git branch --show-current 2>/dev/null)
if ($git_branch -ne $null -and $git_branch -ne "") {
- $git_branch = " ($($git_branch))"
+ $git_branch = "($($git_branch))"
}
- "[pwsh] `e[01;32m$($env:USER)@$([System.Net.Dns]::GetHostName())`e[00m:`e[01;34m$(Split-Path -Path $pwd -Leaf)`e[1;35m$git_branch`e[00m`$ "
+ "[pwsh] `e[01;32m$($env:USER)@$([System.Net.Dns]::GetHostName())`e[00m:`e[01;34m$(Split-Path -Path $pwd -Leaf) `e[1;35m$git_branch`e[00m`$ "
}
}