From 9e0a9186351eae10e70d3157878953ade0b310b7 Mon Sep 17 00:00:00 2001 From: Andrey Grigorev Date: Thu, 22 Apr 2021 08:56:33 +0000 Subject: [PATCH] Fix repository status in prompt --- 93git-branch.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/93git-branch.sh b/93git-branch.sh index ef42c1c..02a8241 100644 --- a/93git-branch.sh +++ b/93git-branch.sh @@ -1,5 +1,5 @@ # Include the current git branch in the prompt if type __git_ps1 &>/dev/null; then - export PS1="$(echo -n "$PS1" | sed "s|\\\W\]|\\\W\$(type __git_ps1 \&>/dev/null \&\& __git_ps1 \" (%s)\")\]|")" + export PS1="$(echo -n "$PS1" | sed "s| \\\w| \\\w\$(type __git_ps1 \&>/dev/null \&\& __git_ps1 \" (%s)\")|")" fi