From 57eeffcf0e5b356b9cda27aa44edbf2c849103eb Mon Sep 17 00:00:00 2001 From: Gregory Pakosz Date: Wed, 11 Mar 2020 15:10:51 +0100 Subject: [PATCH] raised _maximize_pane() retry count and sleep duration, fixes #328 this helps when running under WSL where fork() is slow --- .tmux.conf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.tmux.conf b/.tmux.conf index fa47bee..2353a5f 100644 --- a/.tmux.conf +++ b/.tmux.conf @@ -222,9 +222,9 @@ run -b '[ -z "#{window_active}" ] && [ -z "#{version}" ] && tmux set display-tim # window=$(tmux new-window -t "$current_session:" -P "exec maximized... 2> /dev/null & tmux setw -t \"$current_session:\" remain-on-exit on; printf \"Pane has been maximized, press + to restore. %s\" '$current_pane'") # window=${window%.*} # -# retry=10 +# retry=1000 # while [ x"$(tmux list-panes -t "$window" -F '#{session_name}:#{window_index} #{pane_dead}' 2>/dev/null)" != x"$window 1" ] && [ "$retry" -ne 0 ]; do -# sleep 0.05 +# sleep 0.1 # retry=$((retry - 1)) # done # if [ "$retry" -eq 0 ]; then