From: Oleg Broytman Date: Sat, 29 Aug 2020 12:38:48 +0000 (+0300) Subject: Feat(bash-prompt): Remove `[]` X-Git-Url: https://git.phdru.name/?a=commitdiff_plain;h=5251876e9b3158749e93584439916c7a68d635f2;p=dotfiles.git Feat(bash-prompt): Remove `[]` Shorten prompt and make it more similar to `__git_ps1`. --- 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 }