From ce5257ee5b191cf2006f803ad1be16c53189ed29 Mon Sep 17 00:00:00 2001 From: Steven Saus Date: Thu, 24 Sep 2020 21:41:43 -0400 Subject: [PATCH] Fixed spaces, etc, in filename --- tmux_devour.sh | 6 +++--- tmux_sidebar.sh | 2 +- tmux_topbar.sh | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/tmux_devour.sh b/tmux_devour.sh index 10e5858..a3ff27f 100755 --- a/tmux_devour.sh +++ b/tmux_devour.sh @@ -17,9 +17,9 @@ printf '\033]2;%s\033\\' 'devour' tmux resize-pane -t "$c_pane" -R 20 tmux select-pane -m -t "$c_pane" - #echo "$c_pane" - tmux send-keys -t "$c_pane" "$command && read && exit" C-m + command2=$(echo "eval \"${command}\" ; tmux kill-pane -t ${c_pane}") tmux resize-pane -Z -t "$c_pane" + tmux send-keys -t "$c_pane" "$command2" C-m fi @@ -31,4 +31,4 @@ # Is it tmux? # Does the sidebar already exist in this window? -# if not, create sidebar and export variable \ No newline at end of file +# if not, create sidebar and export variable diff --git a/tmux_sidebar.sh b/tmux_sidebar.sh index 69a5ea2..39e5eda 100755 --- a/tmux_sidebar.sh +++ b/tmux_sidebar.sh @@ -18,7 +18,7 @@ #tmux swap-pane -s "$o_pane" -t "$c_pane" printf '\033]2;%s\033\\' 'topbar' tmux resize-pane -t "$c_pane" -R 30 - command2=$(echo "$command ; tmux kill-pane -t ${c_pane}") + command2=$(echo "eval \"${command}\" ; tmux kill-pane -t ${c_pane}") tmux send-keys -t "$c_pane" "$command2" C-m tmux last-pane #tmux send-keys -t "$o_pane" C-o C-m diff --git a/tmux_topbar.sh b/tmux_topbar.sh index 9fa0741..5c20d9c 100755 --- a/tmux_topbar.sh +++ b/tmux_topbar.sh @@ -19,7 +19,7 @@ printf '\033]2;%s\033\\' 'topbar' tmux resize-pane -t "$c_pane" -U 14 #tmux select-pane -m -t "$c_pane" - command2=$(echo "$command ; tmux kill-pane -t ${c_pane}") + command2=$(echo "eval \"${command}\" ; tmux kill-pane -t ${c_pane}") tmux send-keys -t "$c_pane" "$command2" C-m tmux last-pane #tmux send-keys -t "$o_pane" C-o C-m