Skip to content

Status is not changed when switching to other window or pane #9

@justfortherec

Description

@justfortherec

Apparently the status bar is only updated on issuing cd or git commands. At least I experience that the status does not update when I switch to a different window or pane.

An example:
I have one window with two panes next to each other.

+-----------+-----------+
| ~/A$      | ~/B$      |
|           |           |
+-----------+-----------+

In the left pane, I'm currently in repository A and the tmux status line also correctly displays repository name and branch. However if I switch to the right pane, the status bar still displays A | branch: master, although the working directory is B, which is a different repository.

Similar behaviour can be seen when switching between a pane within a repo and one outside the repo. Information about git is only updated after switching directory or running some git command.

For me this kind of defeats the purpose of this nice script. Is it possible to update the displayed information when switching between tmux' panes and/or windows?

Thanks

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions