From 2a4088119cf41175457414dfa59bd4064b8f0562 Mon Sep 17 00:00:00 2001 From: Kartik Agaram Date: Wed, 1 Jan 2020 17:04:37 -0800 Subject: 5852 --- archive/1.vm/sandbox/mu_run | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100755 archive/1.vm/sandbox/mu_run (limited to 'archive/1.vm/sandbox/mu_run') 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 -- cgit 1.4.1-2-gfad0