From 75ad085509b408422e7ecc901d1857367d6456f9 Mon Sep 17 00:00:00 2001 From: Dario Romagnoli Date: Wed, 30 Jan 2019 10:49:54 +0100 Subject: [PATCH 1/3] Enable renumbering of windows Update the numbering when a window is killed. --- sensible.tmux | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/sensible.tmux b/sensible.tmux index 5cf2af6..d4a0afe 100755 --- a/sensible.tmux +++ b/sensible.tmux @@ -67,6 +67,8 @@ key_binding_not_changed() { main() { # OPTIONS + + # enable utf8 (option removed in tmux 2.2) tmux set-option -g utf8 on 2>/dev/null @@ -78,6 +80,11 @@ main() { tmux set-option -s escape-time 0 fi + # enable renumbering of windows + if option_value_not_changed "renumber-windows" "off"; then + tmux set-option -g renumber-windows on + fi + # increase scrollback buffer size if option_value_not_changed "history-limit" "2000"; then tmux set-option -g history-limit 50000 From 886b202f976ae603298e606515b940629dfa3dc0 Mon Sep 17 00:00:00 2001 From: Dario Romagnoli Date: Wed, 30 Jan 2019 10:50:34 +0100 Subject: [PATCH 2/3] Update sensible.tmux --- sensible.tmux | 2 -- 1 file changed, 2 deletions(-) diff --git a/sensible.tmux b/sensible.tmux index d4a0afe..0aa232f 100755 --- a/sensible.tmux +++ b/sensible.tmux @@ -67,8 +67,6 @@ key_binding_not_changed() { main() { # OPTIONS - - # enable utf8 (option removed in tmux 2.2) tmux set-option -g utf8 on 2>/dev/null From 2e6398b747a3f1cd1a7e520ac94bf7e1073e792d Mon Sep 17 00:00:00 2001 From: Dario Romagnoli Date: Wed, 30 Jan 2019 16:32:12 +0100 Subject: [PATCH 3/3] Remove option checking --- sensible.tmux | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/sensible.tmux b/sensible.tmux index 0aa232f..a0a0793 100755 --- a/sensible.tmux +++ b/sensible.tmux @@ -67,6 +67,9 @@ key_binding_not_changed() { main() { # OPTIONS + # enable renumbering of windows + tmux set-option -g renumber-windows on + # enable utf8 (option removed in tmux 2.2) tmux set-option -g utf8 on 2>/dev/null @@ -78,11 +81,6 @@ main() { tmux set-option -s escape-time 0 fi - # enable renumbering of windows - if option_value_not_changed "renumber-windows" "off"; then - tmux set-option -g renumber-windows on - fi - # increase scrollback buffer size if option_value_not_changed "history-limit" "2000"; then tmux set-option -g history-limit 50000