scripts: resize: always resize the proper pane - sob - simple output bar
HTML git clone git://git.codemadness.org/sob
DIR Log
DIR Files
DIR Refs
DIR README
DIR LICENSE
---
DIR commit 739f0257360815ab73257e8b1f682567a140f781
DIR parent 97f351910969f50f9b33a9af848453b73842cb2f
HTML Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Sun, 12 Oct 2014 22:39:16 +0000
scripts: resize: always resize the proper pane
Diffstat:
M scripts/resize | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
---
DIR diff --git a/scripts/resize b/scripts/resize
@@ -1,2 +1,3 @@
#!/bin/sh
-tmux resize-pane -y 4 2> /dev/null
+test x"$TMUX_PANE" = x"" && exit 1
+tmux resize-pane -t "$TMUX_PANE" -y 4 2> /dev/null