From ff44e305c6036d9881fc1344bf940aa3bc394aa3 Mon Sep 17 00:00:00 2001 From: Andrew Tomaka Date: Mon, 22 Jun 2015 13:38:47 -0400 Subject: [PATCH] More versions exist than 1.8, 1.9, and 2.0 This is a temporary fix. It will run the 1.8 conf by default. Settings in that will be overridden if tmux is version 1.9 or 2.0. This should be good enough for now. --- tmux.conf | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/tmux.conf b/tmux.conf index bef97fd..ac7c91f 100644 --- a/tmux.conf +++ b/tmux.conf @@ -64,6 +64,5 @@ set-window-option -g window-status-current-fg black set-option -g status-right '%d %b %Y @ %k:%M' # because the new tmux is inadequate -if-shell 'tmux -V | grep -q 1.8' "source-file ~/.tmux.1-8.conf" -if-shell 'tmux -V | grep -q 1.9' "source-file ~/.tmux.1-9.conf" -if-shell 'tmux -V | grep -q 2.0' "source-file ~/.tmux.1-9.conf" +source-file ~/.tmux.1-8.conf # always source the 1.8 file +if-shell 'tmux -V | grep -q "1.9\|2.0"' "source-file ~/.tmux.1-9.conf"