|
|
@@ -88,8 +88,8 @@ bind-key X kill-session
|
|
|
# Remember prefix+$ for renaming sessions.
|
|
|
|
|
|
# Version-specific configuration.
|
|
|
-if-shell '[[ `tmux -V | sed "s/[tmux |\.]//g"` < 21 ]]' 'source-file ~/dotfiles/tmux/tmux1.conf'
|
|
|
-if-shell '[[ `tmux -V | sed "s/[tmux |\.]//g"` -ge 21 ]]' 'source-file ~/dotfiles/tmux/tmux2.conf'
|
|
|
+if-shell '[[ $(version-compare $(tmux -V | sed "s/[tmux ]//g") 2.1) -lt 0 ]]' 'source-file ~/dotfiles/tmux/tmux1.conf'
|
|
|
+if-shell '[[ $(version-compare $(tmux -V | sed "s/[tmux ]//g") 2.1) -ge 0 ]]' 'source-file ~/dotfiles/tmux/tmux2.conf'
|
|
|
|
|
|
# Colours and status line.
|
|
|
source-file ~/dotfiles/tmux/tmuxcolours.conf
|