]> git.wincent.com - docvim.git/blob - .tmux
Add .tmux file
[docvim.git] / .tmux
1 #!/bin/sh
2
3 set -e
4
5 if tmux has-session -t docvim 2> /dev/null; then
6   tmux attach -t docvim
7   exit
8 fi
9
10 tmux new-session -d -s docvim -n vim
11
12 # 1. Main window: vim.
13 tmux send-keys -t docvim:vim "vim -c CommandT" Enter
14
15 # 2. REPL.
16 tmux new-window -t docvim -n repl
17 tmux send-keys -t docvim:repl "stack repl" Enter
18
19 # 3. General shell use.
20 tmux new-window -t docvim
21
22 tmux attach -t docvim:vim