arl / tmux-gitbar

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

Some errors occur when update-gitbar called in the initial git directory #51

Closed kyoh86 closed 6 years ago

kyoh86 commented 6 years ago
$ cd /tmp
$ mkdir foobar
$ cd foobar
$ git init
$ ~/.tmux-gitbar/update-gitbar
/Users/foo/.tmux-gitbar/lib/tmux-gitbar.sh: line 128: test: on: integer expression expected
/Users/foo/.tmux-gitbar/lib/tmux-gitbar.sh: line 128: test: master: integer expression expected
/Users/foo/.tmux-gitbar/lib/tmux-gitbar.sh: line 128: test: _NO_REMOTE_TRACKING_: integer expression expected
/Users/foo/.tmux-gitbar/lib/tmux-gitbar.sh: line 128: test: ^: integer expression expected

env: tmux 2.6, zsh 5.4.2 (x86_64-apple-darwin16.7.0) out of context: I'm troubled since I cannot update gitbar automatically...

arl commented 6 years ago

Hi Kyoichiro Tmux-gitbar is currently only supported for bash shell. Thanks for reporting anyway.

On 18 Oct 2017 04:07, "Kyoichiro Yamada" notifications@github.com wrote:

$ cd /tmp $ mkdir foobar $ cd foobar $ git init $ ~/.tmux-gitbar/update-gitbar /Users/yamada/.tmux-gitbar/lib/tmux-gitbar.sh: line 128: test: on: integer expression expected /Users/yamada/.tmux-gitbar/lib/tmux-gitbar.sh: line 128: test: master: integer expression expected /Users/yamada/.tmux-gitbar/lib/tmux-gitbar.sh: line 128: test: _NO_REMOTETRACKING: integer expression expected /Users/yamada/.tmux-gitbar/lib/tmux-gitbar.sh: line 128: test: ^: integer expression expected

env: tmux 2.6, zsh 5.4.2 (x86_64-apple-darwin16.7.0) out of context: I'm troubled since I cannot update gitbar automatically...

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/aurelien-rainone/tmux-gitbar/issues/51, or mute the thread https://github.com/notifications/unsubscribe-auth/AAdF6oEoCU9QVM6D06WvRWe752jl0yahks5stV1EgaJpZM4P9DzK .

kyoh86 commented 6 years ago

Thank you for your response! it's unfortunate...

arl commented 6 years ago

I'm sure that supporting zsh must not be so difficult, I'm open to a Pull request for that but don't have any time for that myself at the moment.

On 18 Oct 2017 16:24, "Kyoichiro Yamada" notifications@github.com wrote:

Closed #51 https://github.com/aurelien-rainone/tmux-gitbar/issues/51.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/aurelien-rainone/tmux-gitbar/issues/51#event-1299182025, or mute the thread https://github.com/notifications/unsubscribe-auth/AAdF6g6BQ5gcpO6LesT9ieJsFR_NKlZXks5stgnPgaJpZM4P9DzK .