Fix option for tmux 2.0+

pull/27/head
Bruno Sutic 2015-06-24 15:02:14 +02:00
parent 3ea5b9f6b9
commit 2476f3fb23
No known key found for this signature in database
GPG Key ID: 66D96E4F2F7EF26C
2 changed files with 6 additions and 1 deletions

View File

@ -3,6 +3,7 @@
### master
- update to support \*THE\* latest tmux version
- bugfix for `prefix + R` key binding
- fix for tmux 2.0 `default-terminal` option (thanks @kwbr)
### v2.2.0, 2015-02-10
- bugfix in `key_binding_not_set`: the regex is now properly detecting key

View File

@ -101,10 +101,14 @@ main() {
tmux set-option -g default-command "reattach-to-user-namespace -l $SHELL"
fi
# upgrade $TERM
# upgrade $TERM, tmux 1.9
if option_value_not_changed "default-terminal" "screen"; then
tmux set-option -g default-terminal "screen-256color"
fi
# upgrade $TERM, tmux 2.0+
if server_option_value_not_changed "default-terminal" "screen"; then
tmux set-option -s default-terminal "screen-256color"
fi
# emacs key bindings in tmux command prompt (prefix + :) are better than
# vi keys, even for vim users