Skip to content

Commit

Permalink
Update note on README about sessions command
Browse files Browse the repository at this point in the history
  • Loading branch information
jrmoulton committed Nov 5, 2022
1 parent a53ff6b commit 769ed1d
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,12 @@ Clone the repository and install using ```cargo install --path . --force```

## Usage Notes

The 'tms sessions' command can be used to get a styled output of the active sessions with an asterisk on the current session. E.g. ![tmux status bar](images/tmux-status-bar.png)
If this configuration is used it can be helpful to rebind the default tmux keys for switching sessions so that the status bar is refreshed on every session switch. This can be configured with settings
like this.
The 'tms sessions' command can be used to get a styled output of the active sessions with an asterisk on the current session. The configuration would look something like this
```
set -g status-right " #(tms sessions)"
```
E.g. ![tmux status bar](images/tmux-status-bar.png)
If this configuration is used it can be helpful to rebind the default tmux keys for switching sessions so that the status bar is refreshed on every session switch. This can be configured with settings like this.
```
bind -r '(' switch-client -p\; refresh-client -S
bind -r ')' switch-client -n\; refresh-client -S
Expand Down

0 comments on commit 769ed1d

Please sign in to comment.