From 44174bfe1fdb51eb9a422cfb8cad38070439ada4 Mon Sep 17 00:00:00 2001 From: Alejandro Mery Date: Sat, 13 Jun 2020 14:41:35 +0000 Subject: [PATCH] tmux: set TMUX_VERSION variable as X*100 + Y Signed-off-by: Alejandro Mery --- files/.tmux.conf | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/files/.tmux.conf b/files/.tmux.conf index 8e936e5..fcbef2b 100644 --- a/files/.tmux.conf +++ b/files/.tmux.conf @@ -1,3 +1,10 @@ +# load TMUX_VERSION +run-shell "\ + echo #{version} | sed -e 's|\\.| |g' -e 's|[a-z]*$||' |\ + while read x y; do\ + tmux set-environment -g TMUX_VERSION \$((x * 100 + y));\ + done" + # same prefix as `screen` set -g prefix C-a unbind C-b