-
-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
documentation: add warning+solution for tmux < 2.1 - #{pane_current_path} not supported #19
Comments
Uhm it seems that tmux 1.9 does not support The problem is not gitmux per se, but how to have it automatically called by tmux on user actions (switch paned ,change for, etc.). Without a recent tmux version, you'll have to implement a solution based on your shell, such as one based on Tmux is very easy to compile, IMO the simplest solution is to build a recent ARM version. |
Just saw this, have a look at the unique answer: https://unix.stackexchange.com/questions/233929/tmux-2-0-pane-current-path-not-working-on-centos/234222#234222 If that works, or if you find another shell-independent solution I'll update the README accordingly |
I tried Thank you for your work -- I'm finding this a very useful addition to my setup. |
Ok It seems that tmux < 2.0 generates it's status statically.
Thank you for your patience, tell me your results and I'll update the README. |
This seems to work reasonably well: Redirecting both STDERR and STDOUT seems necessary, or tmux will spam output on every command. For me I think building a recent tmux is a better way to go but hopefully this will be useful to someone. Cheers. |
Great! Thanks for reporting |
The OpenBSD version of tmux hasn't had With your shell prompt you set the title to the current path:
Then use this in
This comes with the caveat that other programmes also set the title such as Vim. You then have to work around those cases individually. In the case of Vim, put this in your
@arl you may want to change future instructions to use
|
Expected Behavior
Git information shows up in status bar when in a git repo.
Actual Behavior
It doesn't.
Steps to Reproduce the Problem
gitmux
and putset -g status-right '#(gitmux "#{pane_current_path}")'
in~/.tmux.conf
, and re-source.#[fg=default]#[fg=default]#[fg=white,bold]⎇ #[fg=default]master#[fg=default]..#[fg=cyan]origin/master#[fg=default]#[fg=default] - #[fg=red,bold]✚ 1 #[fg=cyan,bold]⚑ 1 #[fg=magenta,bold]…1
Specifications
Same setup works for me on a x86 box with tmux 2.1. Any ideas?
The text was updated successfully, but these errors were encountered: