Code Monkey home page Code Monkey logo

Comments (14)

felippemr avatar felippemr commented on August 30, 2024 3

#(/Users/fera/go/bin/gitmux "#{pane_current_path}") worked!

from gitmux.

arl avatar arl commented on August 30, 2024 2
  1. Configure ~/.tmux.conf.local to tmux_conf_theme_status_right='#{prefix}#{pairing}#{synchronized} #(gitmux "#{pane_current_path}"), #{?battery_status, #{battery_status},}#{?battery_bar, #{battery_bar},}#{?battery_percentage, #{battery_percentage},} , %R , %d %b | #{username}#{root} | #{hostname} '

So I guess this works now?

from gitmux.

felippemr avatar felippemr commented on August 30, 2024

Already tried without , after the gitmux conf.

from gitmux.

arl avatar arl commented on August 30, 2024

Thanks for reporting.
Just to be sure there's nothing else did you check that gitmux shows when it's put alone in status-right

from gitmux.

felippemr avatar felippemr commented on August 30, 2024

I did not. Let me try.

from gitmux.

felippemr avatar felippemr commented on August 30, 2024

It still does not work.

from gitmux.

arl avatar arl commented on August 30, 2024

It still does not work.

To try, did you comment everything in your tmux.conf that is about status-right, then placed (as per gitmux readme):

set -g status-right '#(gitmux "#{pane_current_path}")'

After that you need to reload tmux.conf
(either with a shortcut set in tmux.conf itself, or by exiting all your tmux session and restating a new one).

Another 'trick' to see if the problem comes from tmux configuration or gitmux itself is to cd in a git working tree and simply issue:

tmux set -g status-right '#(gitmux "#{pane_current_path}")'

That should work

from gitmux.

arl avatar arl commented on August 30, 2024

But I strongly suspect a conflict in your tmux configuration file. I do not use oh-my-tmux so I don't know whether it's author explained how to extend the provided status string but anyway since it's just a set of tmux commands there's no reason why you shouldn't be able to mix gitmux with it

from gitmux.

felippemr avatar felippemr commented on August 30, 2024

Thanks for your response!

tmux set -g status-right '#(gitmux "#{pane_current_path}")'

👆 did not work

from gitmux.

felippemr avatar felippemr commented on August 30, 2024

I changed gitmux to echo and the result of current folder appeared. gitmux in is my path because I can run it from a bash session but for some reason tmux can't find it.

from gitmux.

felippemr avatar felippemr commented on August 30, 2024

So it has nothing to do with oh-my-tmux.

from gitmux.

felippemr avatar felippemr commented on August 30, 2024

Closing since the issue is not related to gitmux.

from gitmux.

michael-wojcik avatar michael-wojcik commented on August 30, 2024

#(/Users/fera/go/bin/gitmux "#{pane_current_path}") worked!

@felippemr Just wanted to say thanks since this worked for me as well using oh-my-tmux! 🙏

from gitmux.

arl avatar arl commented on August 30, 2024

That'd mean either gitmux is not in the PATH, or at least not in the PATH that tmux sees.
Anyway glad to hear this issues is helping others

from gitmux.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.