kejadlen/git-together

bash-it pairing info

ehrenmurdick opened this issue · 1 comments

If you set git config user.initials to the same value as git-together.active, then bash-it's theming will pick up the current pair initials the same way it does for git-pair.

Relevant line in the bash-it profile sauce
https://github.com/Bash-it/bash-it/blob/2a0a425334af899a6fe0004f405927a6ef683f07/themes/base.theme.bash#L410

What it looks like when you set it with bash-it:

image

It's also possible to overwrite the git_user_info function from bash_it.

For example, you can set BASH_IT_CUSTOM in ~/.bash_profile and add code to a file like

${BASH_IT_CUSTOM}/add_user_initials_to_git_prompt.sh:

git_user_info() {
  SCM_CURRENT_USER=$(git config git-together.active)
  [[ -n "${SCM_CURRENT_USER}" ]] && printf "%s" "$SCM_THEME_CURRENT_USER_PREFFIX$SCM_CURRENT_USER$SCM_THEME_CURRENT_USER_SUFFIX"
}