mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-25 11:11:35 +01:00
run: rename cryptic tmu to tmux-split, ./run is good now so I never use it anymore explicitly
This commit is contained in:
7
tmux-split
Executable file
7
tmux-split
Executable 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;$*')"
|
||||
Reference in New Issue
Block a user