1
0
mirror of https://git.decapod.one/brethil/dotfiles synced 2024-11-21 19:11:30 +01:00

zsh: do not show parentheses around git prompt

This commit is contained in:
bretello 2021-01-09 23:53:54 +01:00
parent 651bfe01f7
commit b280360a16
Signed by: brethil
GPG Key ID: 876AAC6290170FE7

View File

@ -97,7 +97,7 @@ function virtualenv_info {
function git_prompt() {
if [[ -n "$(git status 2>/dev/null)" ]]; then
local GIT_PROMPT="%F{255}($(git_prompt_info)%B%F{255}|%f%b$(git_prompt_status)$(git_remote_status)%F{255})%f"
local GIT_PROMPT=" %F{255}$(git_prompt_info)%B%F{255} |%f%b$(git_prompt_status)$(git_remote_status)"
echo "$GIT_PROMPT"
else
echo ""