Skip to content

Instantly share code, notes, and snippets.

@magnunleno
Created December 23, 2016 00:46
Show Gist options
  • Save magnunleno/d823974184ca48f3bde1a9b93f16b0f1 to your computer and use it in GitHub Desktop.
Save magnunleno/d823974184ca48f3bde1a9b93f16b0f1 to your computer and use it in GitHub Desktop.
Tmux mouse conf for versions prior and after to 2.1
if-shell '[ $(echo "$(tmux -V | cut -d" " -f2) <= 2.0" | bc) -eq 1 ]' \
"set -g mouse-select-window on; set -g mouse-select-pane on; set -g mouse-resize-pane on"
if-shell '[ $(echo "$(tmux -V | cut -d" " -f2) >= 2.1" | bc) -eq 1 ]' \
"set -g mouse on;"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment