arl / tmux-gitbar

Git in your tmux status bar
GNU General Public License v3.0
169 stars 16 forks source link

Extra spaces in minimal config #32

Closed adrianluff closed 7 years ago

adrianluff commented 8 years ago

Using the following tmux-gitbar.conf:

readonly TMGB_STATUS_LOCATION='left'
readonly TMGB_STYLE=''
readonly TMGB_STATUS_STRING=" #{git_branch}#{git_flags}"

...produces a minimalist tmux-gitbar config. The outputted information contains extra spaces which bloat the width of the tmux-gitbar status line (dashes used in place of spaces for emphasis): "-⎇-master--✔"

Ideally I'd like "-⎇master-✔", which isn't possible without editing several places in the lib/tmux-gitbar.sh file because of spaces embedded in the strings.

Not sure this is worth fixing ultimately but thought I'd mention it.