tmu: fix window switch for build problem

This commit is contained in:
Ciro Santilli
2018-04-22 22:30:55 +01:00
parent f10ef3a467
commit 14965a40d2
2 changed files with 2 additions and 9 deletions

3
tmu
View File

@@ -2,4 +2,5 @@
if [ "$(tmux list-panes | wc -l | cut -d' ' -f1)" -ne 1 ]; then
tmux kill-pane -t 1
fi
tmux split-window -h "bash --rcfile <(echo '. ~/.bashrc;$*')"
# https://unix.stackexchange.com/questions/439031/how-to-split-the-window-that-ran-the-tmux-split-window-command-instead-of-the/439032#439032
tmux split-window -dh -t "$TMUX_PANE" "bash --rcfile <(echo '. ~/.bashrc;$*')"