diff options
Diffstat (limited to 'sandbox/mu_run')
-rwxr-xr-x | sandbox/mu_run | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/sandbox/mu_run b/sandbox/mu_run new file mode 100755 index 00000000..8d606fcd --- /dev/null +++ b/sandbox/mu_run @@ -0,0 +1,15 @@ +#!/usr/bin/zsh + +export ALREADY_FOCUSED=0 +tmux list-panes |grep "^1.*active" -q && export ALREADY_FOCUSED=1 +if [[ $ALREADY_FOCUSED -eq 0 ]] +then + tmux select-pane -t 1 +fi + +tmux send-keys 'F4' + +if [[ $ALREADY_FOCUSED -eq 0 ]] +then + tmux last-pane +fi |