#!/bin/bash # if called from a tmux session, don't create new session if [ -n "$TMUX_PANE" ]; then tmux rename-window dev tmux splitw -h tmux selectp -t 0 tmux resizep -x 83 tmux splitw -v -l 15 tmux selectp -t 0 clear else tmux new -s dev \; rename-window dev \; splitw -h \; selectp -t 0 \; resizep -x 83 \; splitw -v -l 15 \; selectp -t 0 \; fi