From 5251876e9b3158749e93584439916c7a68d635f2 Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Sat, 29 Aug 2020 15:38:48 +0300 Subject: [PATCH] Feat(bash-prompt): Remove `[]` Shorten prompt and make it more similar to `__git_ps1`. --- admin/prog/bash_prompt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/admin/prog/bash_prompt b/admin/prog/bash_prompt index e04e6e8..e3d491b 100644 --- a/admin/prog/bash_prompt +++ b/admin/prog/bash_prompt @@ -69,7 +69,7 @@ prompt_git() { git rev-parse --short HEAD 2> /dev/null || \ printf "(unknown)")" - [ -n "$s" ] && s=" [$s]" + [ -n "$s" ] && s=" $s" printf " (%s)" "$branchName$s" fi } -- 2.39.5