Build 2.9.20160206
I installed .iterm2_shell_integration.bash
I defined a Badge: Git: \(user.gitBranch)
and I see 'Git:', as expected since the user var isn't yet defined.
I put this my .bashrc (same function, w/ 2 different names):
# For iTerm2 v3
function iterm2_print_user_vars() {
iterm2_set_user_var gitBranch $((git branch 2> /dev/null) | grep \* | cut -c3-)
}
function iterm2_set_user_vars() {
iterm2_set_user_var gitBranch $((git branch 2> /dev/null) | grep \* | cut -c3-)
}
--
You received this message because you are subscribed to the Google Groups "iterm2-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to iterm2-discus...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.