File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -183,7 +183,6 @@ if [ -n "$force_color_prompt" ]; then
183183fi
184184
185185MAUVE=" \[\033[38;2;203;166;247m\]"
186- GREEN=" \[\033[38;2;166;227;161m\]"
187186BLUE=" \[\033[38;2;137;180;250m\]"
188187RESET=" \[\033[00m\]"
189188
Original file line number Diff line number Diff line change @@ -40,11 +40,13 @@ function __git_ps1_windows_mount() {
4040 format_str=" (%s)"
4141 fi
4242
43- local path=$( pwd)
43+ local path
44+ path=$( pwd)
4445 if iswsl && [[ " $path " =~ /mnt/[a-z]/ ]] && git rev-parse --is-inside-work-tree > /dev/null 2>&1 ; then
4546 # We're in a Windows mount path
4647 # Use git.exe directly to get branch info
47- local branch=$( git.exe branch --show-current 2> /dev/null)
48+ local branch
49+ branch=$( git.exe branch --show-current 2> /dev/null)
4850 if [ -n " $branch " ]; then
4951 # Replace %s with the actual branch name
5052 echo " ${format_str//% s/ $branch } "
You can’t perform that action at this time.
0 commit comments