Comments (6)
yes tmux-gitbar
only works with bash. When I developed it tmux didn't implement action hooks so I had to rely on $PROMPT_COMMAND
to update Git status. (it was tmux 1.9).
FYI I'm currently adding the last touches to the replacement for tmux-gitbar
, it relies solely on tmux hooks. The big advantage is that it is shell-independent as it's called by a hook, so tmux status bar is immediately updated when switching panes or windows. That is not the case with tmux-gitbar
, you need to run something (or nothing but still press ENTER) to trigger the $PROMPT_COMMAND
and updates tmux status bar.
I'm still polishing the project, in the meanwhile if you're interested, check it out at https://github.com/arl/gitstatus, it'w written in go:
- compile
gitstatus
, with gogo get github.com/arl/gitstatus/cmd/gitstatus
- add this line to your tmux.conf:
set -g status-right '#(gitstatus -q -fmt tmux #{pane_current_path})'
Enjoy...
from tmux-gitbar.
@arl you rock! Cheers, I’ll check it out soon.
from tmux-gitbar.
Hi,
there's a typo in the compile command, it should be
- go get github.com/arl/gitstatus/cmd/gistatus
+ go get github.com/arl/gitstatus/cmd/gitstatus
It took me 10 minutes find out why the command was failing. :-)
Jaime
from tmux-gitbar.
Oups sorry!! thanks for reporting. Updated.
Anyway the repository for that tool of mine needs a bit of polishing and documentation
from tmux-gitbar.
Reopening for reference
from tmux-gitbar.
FYI the repo linked in issue #60 github.com/arl/gitstatus, will now remain what it was always supposed to be: a library to obtain git status.
I created a new repo github.com/arl/gitmux which is the real replacement for tmux-gitbar.
Tmux-gitbar is a pain in the butt to maintain, written in bash, only supports bash, and was designed at a time when tmux didn't have hooks.
gitmux on the other hand, is much simpler to maintain, to install, more powerful, comes with pre-built binaries and works everywhere where tmux works.
Come and have a look
from tmux-gitbar.
Related Issues (20)
- How does tmux-gitbar would take advantage of tmux v2.3 HOT 2
- Takes no effect after installation HOT 1
- tmux-gitbar.conf needs to exist outside the repo HOT 6
- Tmux 2.3 problem HOT 15
- Show when a rebase, bisect, am is in progress? HOT 3
- Gitbar is squashed in to rightmost 14 characters HOT 3
- Add length limitation on the branch+remote string, or the whole bar
- No bar on tmux 2.1. HOT 12
- Problem when on a tag in detached state
- Symbols in Bash on Ubuntu on Windows don't work HOT 7
- Some errors occur when update-gitbar called in the initial git directory HOT 3
- Garbage output in freshly created repo with 0 commits
- unknown option: status-right-style HOT 5
- Bug when reading a newly created repo HOT 8
- Still read Git status when .tmgbignore
- Does not work in zsh HOT 5
- Git status bar not showing automatically HOT 7
- Git information not showing up after reloading tmux config HOT 6
- Still having zsh issue HOT 8
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tmux-gitbar.