Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bash-it pairing info #21

Open
ehrenmurdick opened this issue Jul 5, 2017 · 1 comment
Open

bash-it pairing info #21

ehrenmurdick opened this issue Jul 5, 2017 · 1 comment

Comments

@ehrenmurdick
Copy link

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

@oliverralbertini
Copy link

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"
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants