arl / tmux-gitbar

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

Garbage output in freshly created repo with 0 commits #52

Closed arl closed 6 years ago

arl commented 7 years ago

Don't know if this happens only on the currently-in-dev-branch handle-special-states, at commit fba3858, but this happens when entering in a freshly created repository with git init, with 0 commits yets:

Garbage output after each command entered:

[0:8369] 02:56:24 Sun Nov 05 [aurelien@computer8:/dev/pts/5 +3] ~/dev/evolve-webui       
$                                           
/home/aurelien/.tmux-gitbar/lib/tmux-gitbar.sh: line 129: test: on: integer expression expected                                                                                   
/home/aurelien/.tmux-gitbar/lib/tmux-gitbar.sh: line 129: test: master: integer expression expected                                                                               
/home/aurelien/.tmux-gitbar/lib/tmux-gitbar.sh: line 129: test: _NO_REMOTE_TRACKING_: integer expression expected                                                                 
/home/aurelien/.tmux-gitbar/lib/tmux-gitbar.sh: line 129: test: ^: integer expression expected

Garbage string showing on tmux status bar:


websocket⮀ 03:03     1:go 2:js (3:bash) 4:bash        ⎇  No - yet - commits | ```