]> git.phdru.name Git - dotfiles.git/commitdiff
Feat(bash-prompt): Remove `[]`
authorOleg Broytman <phd@phdru.name>
Sat, 29 Aug 2020 12:38:48 +0000 (15:38 +0300)
committerOleg Broytman <phd@phdru.name>
Sat, 29 Aug 2020 12:38:48 +0000 (15:38 +0300)
Shorten prompt and make it more similar to `__git_ps1`.

admin/prog/bash_prompt

index e04e6e86e83bc30556d3d6631b872e1b21280ada..e3d491b6c20ca5eb0ed1bcea18a8d04126ee8092 100644 (file)
@@ -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
 }