tmu 171 B

123456
  1. #!/usr/bin/env bash
  2. if [ "$(tmux list-panes | wc -l | cut -d' ' -f1)" -ne 1 ]; then
  3. tmux kill-pane -t 1
  4. fi
  5. tmux split-window -h "bash --rcfile <(echo '. ~/.bashrc;$*')"