From 8703c0d545da8109a680dca2103b70095ddff927 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aur=C3=A9lien=20Rainone?= <476650+arl@users.noreply.github.com> Date: Sat, 7 Aug 2021 11:49:39 +0200 Subject: [PATCH] Update README.md Add link to solution solution without pane_current_path. Fixes #19 --- README.md | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index f16bcd5..2dc5aee 100644 --- a/README.md +++ b/README.md @@ -43,10 +43,17 @@ Run `go get` to build and install `gitmux`: ## Getting started -Add this line to your `.tmux.conf`: +If your `tmux` version supports `pane_current_pane` (tmux v2.1+), +just add this line to your `.tmux.conf`: set -g status-right '#(gitmux "#{pane_current_path}")' +If your `tmux` doesn't support `pane_current_path` then you can use +a [bash-specific solution](https://github.com/arl/gitmux/issues/19#issuecomment-594735939) +to achieve relatively similar behaviour: `gitmux` will refresh after every shell command +you run or when you switch windows, however it won't refresh automatically, nor when switching panes. + +Note that `tmux v2.1` was released in 2015 so you're probably better off updating to a more recent version anyway 🙂. ## Customizing