From 36619607ba79f15a793d9c04d9cb98a98562dc30 Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Mon, 9 Jan 2017 21:44:19 +0000 Subject: [PATCH] Add a format for the version. --- format.c | 1 + tmux.1 | 1 + 2 files changed, 2 insertions(+) diff --git a/format.c b/format.c index 70704f01..75fed569 100644 --- a/format.c +++ b/format.c @@ -529,6 +529,7 @@ format_create(struct cmdq_item *item, int flags) RB_INIT(&ft->tree); ft->flags = flags; + format_add(ft, "version", "%s", VERSION); format_add_cb(ft, "host", format_cb_host); format_add_cb(ft, "host_short", format_cb_host_short); format_add_cb(ft, "pid", format_cb_pid); diff --git a/tmux.1 b/tmux.1 index 0539c1f8..484749ba 100644 --- a/tmux.1 +++ b/tmux.1 @@ -3542,6 +3542,7 @@ The following variables are available, where appropriate: .It Li "session_windows" Ta "" Ta "Number of windows in session" .It Li "socket_path" Ta "" Ta "Server socket path" .It Li "start_time" Ta "" Ta "Server start time" +.It Li "version" Ta "" Ta "Server version" .It Li "window_activity" Ta "" Ta "Integer time of window last activity" .It Li "window_activity_flag" Ta "" Ta "1 if window has activity" .It Li "window_active" Ta "" Ta "1 if window active"