Skip to content

Commit 526110e

Browse files
author
Bruno Sutic
committed
Quiet warnings for utf8 options
Tmux 2.2 removed `utf8` and `status-utf8` options. Since we still want to keep these options for earlier tmux versions we're redirecting the output to /dev/null when setting these commands. This way tmux 2.2 (and above) users won't get any errors when running this plugin.
1 parent b0a8527 commit 526110e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

sensible.tmux

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -67,11 +67,11 @@ key_binding_not_changed() {
6767
main() {
6868
# OPTIONS
6969

70-
# enable utf8
71-
tmux set-option -g utf8 on
70+
# enable utf8 (option removed in tmux 2.2)
71+
tmux set-option -g utf8 on 2>/dev/null
7272

73-
# enable utf8 in tmux status-left and status-right
74-
tmux set-option -g status-utf8 on
73+
# enable utf8 in tmux status-left and status-right (option removed in tmux 2.2)
74+
tmux set-option -g status-utf8 on 2>/dev/null
7575

7676
# address vim mode switching delay (http://superuser.com/a/252717/65504)
7777
if server_option_value_not_changed "escape-time" "500"; then

0 commit comments

Comments
 (0)