-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtmux
executable file
·38 lines (28 loc) · 1020 Bytes
/
tmux
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#! /bin/bash
dir=$(pwd)
session=$(basename "$dir")
tmux rename-session "$session"
tmux rename-window shell
tmux new-window -n vim -d
tmux send-keys -t vim "cd ." C-m
tmux send-keys -t vim "vim ." C-m
tmux new-window -n rspec -d
tmux send-keys -t rspec "cd ." C-m
tmux send-keys -t rspec "rs" C-m
tmux new-window -n irb -d
tmux send-keys -t irb "cd ." C-m
tmux send-keys -t irb "irb" C-m
#tmux new-window -n rdoc -d
#tmux split-window -t rdoc -p 0
#tmux send-keys -t rdoc.1 "cd ." C-m
#tmux send-keys -t rdoc.1 "gem server" C-m
#tmux send-keys -t rdoc.0 "cd ." C-m
#tmux send-keys -t rdoc.0 "sleep 10" C-m
#tmux send-keys -t rdoc.0 "links http://127.0.0.1:8808" C-m
#tmux new-window -n log -d
#tmux send-keys -t log "cd ." C-m
#tmux send-keys -t log "tail -f log/development.log" C-m
#tmux new-window -n rails -d
#tmux send-keys -t rails "cd ." C-m
#tmux send-keys -t rails "rails server --binding=127.0.0.1" C-m
tmux swap-window -s vim -t shell