From f1db02086fadc4e87e3f03ee9e4c78b759c8bc28 Mon Sep 17 00:00:00 2001 From: Gregory Pakosz Date: Mon, 7 Sep 2020 23:23:04 +0200 Subject: [PATCH] updated README.md to mention strftime(3) peculiarities, closes #309 --- README.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/README.md b/README.md index 84de36b..dbcbb23 100644 --- a/README.md +++ b/README.md @@ -287,6 +287,15 @@ minutes whatever the value of `status-interval`. [wttr.in]: https://github.com/chubin/wttr.in#one-line-output +Finally, remember `tmux_conf_theme_status_left` and +`tmux_conf_theme_status_right` end up being given to tmux as `status-left` and +`status-right` which means they're passed through `strftime()`. As such, the `%` +character has a special meaning and needs to be escaped by doubling it, e.g. +``` +tmux_conf_theme_status_right='#(echo foo %% bar)' +``` +See `man 3 strftime`. + ### Accessing the macOS clipboard from within tmux sessions [Chris Johnsen created the `reattach-to-user-namespace`