Status bar - git branch - minimum width
- iTerm2 version: 3.3.9
- OS version:1 0.14.6 (18G4032)
- Attachcom.googlecode.iterm2.plist
- Attach a debug log, if possible.
- Are you reporting a performance issue, excessive CPU usage, or a hang? No
- Are you reporting a crash? No
- Are you reporting excessive memory usage? No
Detailed steps to reproduce the problem:
- re-install shell integration scripts
- cd into a git-managed directory
- use default branch, or change branch
What happened:
git state in status bar stays empty
What should have happened:
git state should display the current branch
I've found (after using the console inspector and the procedure described in #7670 (closed)) that Minimum Width 0
means that the branch name is not shown. This means the branch name is known, but cannot be displayed in the status bar.
The minimum width seems to only be computed for the branch icon width, and ignore the branch string length. Is is possible to specify a width that auto adapts to the branch name width, so that this state takes the minimal possible width but always displays the full branch name?
BTW I have an issue with adding:
function iterm2_print_user_vars() {
it2git
}
to ~/.bashrc, as it ends up reporting an error after each command:
-bash: it2git: command not found
whereas:
$ alias it2git
alias it2git='/Users/eblot/.iterm2/it2git'
-bash: it2git: command not found
however, using the absolute path did fix the issue (but I'm not sure why):
function iterm2_print_user_vars() {
$HOME/.iterm2/it2git
}
What did I do wrong? (same behaviour on macOS localhost and remote Linux Debian hosts)
Thanks.