diff options
Diffstat (limited to 'archive/1.vm/sandbox/mu_run')
-rwxr-xr-x | archive/1.vm/sandbox/mu_run | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/archive/1.vm/sandbox/mu_run b/archive/1.vm/sandbox/mu_run new file mode 100755 index 00000000..b96cfd1c --- /dev/null +++ b/archive/1.vm/sandbox/mu_run @@ -0,0 +1,16 @@ +#!/usr/bin/zsh +# Little bit of glue to support running Mu from Vim over tmux. + +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 |