Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#(gitmux #{pane_current_path}) doesn't work #17

Closed
ryuheechul opened this issue Feb 9, 2020 · 6 comments · Fixed by #18
Closed

#(gitmux #{pane_current_path}) doesn't work #17

ryuheechul opened this issue Feb 9, 2020 · 6 comments · Fixed by #18
Labels
bug Something isn't working documentation Improvements or additions to documentation

Comments

@ryuheechul
Copy link

Expected Behavior

shows git status

Actual Behavior

shows nothing

Steps to Reproduce the Problem

  1. add this line to tmux.conf set -g status-right '#(gitmux #{pane_current_path})'

I fixed the issue with set -g status-right '#(gitmux "#{pane_current_path}")' which is surround #{pane_current_path} with ""

Specifications

  • OS: macOS 10.15.3 + zsh
  • gitmux version: <development version>>
  • tmux version: tmux 3.0a
  • in case the problem only happens in a specific directory: run gitmux -dbg in that directory
@arl
Copy link
Owner

arl commented Feb 10, 2020

Thanks for reporting that.
I'm going to try if adding " works also on Linux/bash (I guess it will) and correct the README accordingly.

But I'd like to understand the reason why quotes ares needed on your system. It would be great if you could help me pinpoint if the problems come from:

  • your OS (Mac)
  • the fact you use zsh
  • the fact that you use a recent version of tmux

@ryuheechul do you think you can help me with that?

Thanks

@arl arl added bug Something isn't working documentation Improvements or additions to documentation labels Feb 10, 2020
@ryuheechul
Copy link
Author

You are welcome, @arl. I will try to use other stacks with gitmux to see if I can narrow it down :)

@ryuheechul
Copy link
Author

when I:
(on macOS)

  • ❌ switched to bash, still the same issue.
    (on macOS + bash)
  • ❌ downgraded tmux 2.9, still the same issue.
  • ❌ downgraded tmux 2.4, still the same issue.
    (on Ubuntu via multipass + bash)
  • 🔵 using tmux 2.6 - the issue is resolved and it works with both set -g status-right '#(gitmux #{pane_current_path})' and set -g status-right '#(gitmux "#{pane_current_path}")'
  • 🔵 using tmux 3.0a - same as above.

So I think this issue has to do something with macOS, and I still wish the documentation changes for considering many macOS developers and the changes syntax also seems to work with linux (at least with Ubuntu) as well.

@arl
Copy link
Owner

arl commented Feb 12, 2020

Ok so it seems the problem is macOS specific then.
Thanks for that thorough testing.
I'm gonna update the README to include the double quotes.

@ryuheechul
Copy link
Author

Thanks!

@qejecooo
Copy link

qejecooo commented Nov 16, 2022

Have the same problem, can someone help? tried all of the above, plus tried editing PATH, that helped a person from another ticket. OS: ubuntu 20.04 that runs through WSL

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working documentation Improvements or additions to documentation
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants