Use TMUX_LAYOUT_FULLSCREEN instead of heuristic
Only change `window-wide-left`/`window-wide-right` to 63%/37% split when `TMUX_LAYOUT_FULLSCREEN=1`.
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
|
||||
cols=`tmux display -p "#{pane_width}"`
|
||||
|
||||
if [[ $cols -gt 300 ]]; then
|
||||
if [ "$LAYOUT_FULLSCREEN" = "1" ]; then
|
||||
tmux split-window -h -l 37% -c '#{pane_current_path}'
|
||||
tmux select-pane -t 1
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user