summaryrefslogtreecommitdiff
path: root/mac/.local/bin/tmuxtoggleterm
diff options
context:
space:
mode:
Diffstat (limited to 'mac/.local/bin/tmuxtoggleterm')
-rwxr-xr-xmac/.local/bin/tmuxtoggleterm11
1 files changed, 11 insertions, 0 deletions
diff --git a/mac/.local/bin/tmuxtoggleterm b/mac/.local/bin/tmuxtoggleterm
new file mode 100755
index 0000000..f21f833
--- /dev/null
+++ b/mac/.local/bin/tmuxtoggleterm
@@ -0,0 +1,11 @@
+#!/bin/sh
+
+export TMUX_PANE_DIRECTION="bottom"
+
+if [ "$TMUX_PANE_DIRECTION" = "bottom" ]; then
+ tmux select-pane -U
+elif [ "$TMUX_PANE_DIRECTION" = "right" ]; then
+ tmux select-pane -L
+fi
+
+tmux resize-pane -Z