mu/archive/1.vm/sandbox/mu_run
Kartik Agaram 30c45021d4 6155
2020-03-20 18:19:13 -07:00

19 lines
369 B
Bash
Executable File
Generated

#!/usr/bin/env 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
exit 0 # avoid spurious error messages under tmux