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