mirror of
https://github.com/romkatv/powerlevel10k
synced 2025-01-30 01:52:55 +00:00
Removed unnecessary whitespace.
This commit is contained in:
parent
12170c915d
commit
205d71a647
@ -172,12 +172,12 @@ function +vi-git-remotebranch() {
|
||||
remote=${$(git rev-parse --verify HEAD@{upstream} --symbolic-full-name 2>/dev/null)/refs\/(remotes|heads)\/}
|
||||
branch_name=${$(git symbolic-ref --short HEAD 2>/dev/null)}
|
||||
|
||||
hook_com[branch]=" %F{black}${hook_com[branch]}%f"
|
||||
hook_com[branch]="%F{black}${hook_com[branch]}%f"
|
||||
# Always show the remote
|
||||
#if [[ -n ${remote} ]] ; then
|
||||
# Only show the remote if it differs from the local
|
||||
if [[ -n ${remote} && ${remote#*/} != ${branch_name} ]] ; then
|
||||
hook_com[branch]+=" %F{black}→%f%F{black}${remote}%f"
|
||||
hook_com[branch]+="%F{black}→%f%F{black}${remote}%f"
|
||||
fi
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user