#!/usr/bin/env zsh# Little bit of glue to support running Mu from Vim over tmux.exportALREADY_FOCUSED=0
tmuxlist-panes|grep"^1.*active"-q&&exportALREADY_FOCUSED=1if[[$ALREADY_FOCUSED-eq0]]thentmuxselect-pane-t1fi
tmuxsend-keys'F4'if[[$ALREADY_FOCUSED-eq0]]thentmuxlast-pane
fiexit0# avoid spurious error messages under tmux