Copy became script to target directory.
[profile.git] / opt / bin / bigtmux
1 #!/bin/bash
2 #
3 # bigtmux: Start tmux, resizing the current window to allow a status line in
4 #          addition to an 87x24 display.
5 # Usage: bigtmux [args]
6 #
7
8 # Resize only if we're at the default size.
9 size=$(stty size)
10 oldcols=${size##* }
11 cols=${oldcols:-80}
12 oldlines=${size%% *}
13 lines=${oldlines:-24}
14
15 [ ${lines:-24} -lt 25 ] && lines=25
16 [ ${cols:-80} -lt 87 ] && cols=87
17 [ $cols = $oldcols -a $lines = $oldlines ] || usize $cols $lines
18
19 exec ${1+"$@"}
20