1
0
Fork 0
mirror of synced 2024-12-21 22:31:06 -05:00

test for buggy swap-pane command in tmux 1.9 and 1.9a once in apply_configuration()

This commit is contained in:
Gregory Pakosz 2016-04-20 21:57:17 +02:00
parent 5156c9fe23
commit 8d847600db

View file

@ -66,9 +66,6 @@ bind -r l select-pane -R # move right
bind > swap-pane -D # swap current pane with the next one
bind < swap-pane -U # swap current pane with the previous one
# maximize current pane
bind + run 'cut -c3- ~/.tmux.conf | sh -s maximize_pane'
# pane resizing
bind -r H resize-pane -L 2
bind -r J resize-pane -D 2
@ -323,7 +320,6 @@ run 'cut -c3- ~/.tmux.conf | sh -s apply_configuration'
# }
#
# maximize_pane() {
# tmux -q -L swap-pane-test -f /dev/null new-session -d \; new-window \; new-window \; swap-pane -t :1 \; kill-session || { tmux display 'your tmux version has a buggy swap-pane command - see ticket #108, fixed in upstream commit 78e783e'; exit; }
# __current_pane=$(tmux display -p '#{pane_id}')
#
# __dead_panes=$(tmux list-panes -s -F '#{pane_dead} #{pane_id} #{pane_start_command}' | grep -o '^1 %.\+maximized.\+$' || true)
@ -517,6 +513,13 @@ run 'cut -c3- ~/.tmux.conf | sh -s apply_configuration'
# apply_configuration() {
# apply_theme
# apply_configurable_bindings
#
# if tmux -q -L swap-pane-test -f /dev/null new-session -d \; new-window \; new-window \; swap-pane -t :1 \; kill-session; then
# tmux bind + run 'cut -c3- ~/.tmux.conf | sh -s maximize_pane'
# else
# tmux bind + display 'your tmux version has a buggy swap-pane command - see ticket #108, fixed in upstream commit 78e783e'
# fi
#
# for name in $(printenv | grep -Eo ^tmux_conf_[^=]+); do tmux setenv -gu $name; done;
# }
#