Fix version checks
This commit is contained in:
@@ -28,7 +28,7 @@ set -g status-interval 2
|
||||
set -g default-terminal "tmux-256color"
|
||||
|
||||
# Enable true-color
|
||||
if '[[ "$TMUX_VERSION" < "3.2" ]]' \
|
||||
if '~/.config/tmux/check-version.sh "<" 3.2' \
|
||||
'set-option -as terminal-features ",xterm*:Tc"' \
|
||||
'set-option -as terminal-features ",xterm*:RGB"'
|
||||
|
||||
@@ -49,7 +49,7 @@ unbind -T copy-mode-vi MouseDragEnd1Pane
|
||||
# Enable changing cursor shape per pane, vim or zsh should emit escape
|
||||
# sequences to change cursor shape.
|
||||
# iTerm2 only requires this before tmux 2.9
|
||||
if '[ -n $ITERM_PROFILE ] && [[ "$TMUX_VERSION" < "2.9" ]]' \
|
||||
if '[ -n $ITERM_PROFILE ] && ~/.config/tmux/check-version.sh "<" 2.9' \
|
||||
'set -ga terminal-overrides "*:Ss=\E]1337;CursorShape=%p1%d\7"'
|
||||
# VTE compatible terminals.
|
||||
if '[ ! -n $ITERM_PROFILE ]' \
|
||||
@@ -66,7 +66,7 @@ bind a run-shell ~/.local/share/tmux/layouts/window-auto
|
||||
if -b '[ "`uname`" = "Darwin" ]' \
|
||||
'set -g default-command "reattach-to-user-namespace -l $SHELL"'
|
||||
|
||||
if -b '[[ "$TMUX_VERSION" > "3.2" ]]' {
|
||||
if -b '~/.config/tmux/check-version.sh ">" 3.2' {
|
||||
# Open a popup with running the default shell
|
||||
bind T display-popup -S fg=#54546D -b rounded -d '#{pane_current_path}' -E $SHELL
|
||||
# Open a popup with session creator/switcher
|
||||
|
||||
Reference in New Issue
Block a user