From 7abde465e8911d7b4a4f668604774919a8dd5486 Mon Sep 17 00:00:00 2001 From: Steven Saus Date: Thu, 1 Oct 2020 01:33:32 -0400 Subject: [PATCH] Fixed issue with devour --- tmux_devour.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tmux_devour.sh b/tmux_devour.sh index 5c79d75..0bae393 100755 --- a/tmux_devour.sh +++ b/tmux_devour.sh @@ -13,9 +13,10 @@ c_tmux=$(env | grep -c TMUX) if [ $c_tmux -gt 0 ];then command=$(echo "$@") + o_pane=$(tmux list-panes -F "#D") tmux split-window -h #"$command" - c_pane=$(tmux list-panes -F "#D") + c_pane=$(tmux list-panes -F "#D" | grep -v "$o_pane") printf '\033]2;%s\033\\' 'devour' tmux resize-pane -t "$c_pane" -R 20 tmux select-pane -m -t "$c_pane"