run: rename cryptic tmu to tmux-split, ./run is good now so I never use it anymore explicitly

This commit is contained in:
Ciro Santilli 六四事件 法轮功
2019-05-12 00:00:03 +00:00
parent 1ab7fbf607
commit b14f68f9bf
2 changed files with 2 additions and 1 deletions

7
tmux-split Executable file
View File

@@ -0,0 +1,7 @@
#!/usr/bin/env bash
# TODO: move to Python.
if [ "$(tmux list-panes | wc -l | cut -d' ' -f1)" -ne 1 ]; then
tmux kill-pane -t 1
fi
# 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;$*')"