1
0
mirror of https://github.com/aquatix/dotfiles.git synced 2025-12-07 03:35:10 +01:00

Only set mouse utf 8 for tmux older than 2.2

This commit is contained in:
2016-10-14 19:38:26 +02:00
parent f145833d95
commit 4927673a28

View File

@@ -95,9 +95,9 @@ set -g update-environment -r
# Fix for shift-keys with Fn; needs correct terminfo too # Fix for shift-keys with Fn; needs correct terminfo too
setw -g xterm-keys on setw -g xterm-keys on
# Mouse support for resizing and selecting panes, default to off # Mouse support for resizing and selecting panes, default to off; not needed for 2.2 and up
set -g mouse-utf8 off if-shell "if [[ `tmux -V | cut -d' ' -f2` -ge 2.1 ]]; then true; else false; fi" \
set -g mouse off 'set -g mouse off; set -g mouse-utf8 off'
# toggle mouse mode to allow mouse copy/paste # toggle mouse mode to allow mouse copy/paste
# set mouse on with prefix m # set mouse on with prefix m