about summary refs log tree commit diff stats
path: root/sandbox/mu_run
blob: b96cfd1c62bb354ff4ea2b89597db9687e6049a1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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